TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry Class Reference

#include <Table.h>

Public Member Functions

 Entry ()
 
 Entry (const Key &k)
 
 Entry (const Key &k, const Value &v)
 
bool operator== (const Entry &peer) const
 
bool operator!= (const Entry &peer) const
 

Public Attributes

Key key
 
Value value
 

Detailed Description

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
class G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry

The pairs returned by iterator.

Constructor & Destructor Documentation

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::Entry ( )
inline
111 {}
template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::Entry ( const Key &  k)
inline
112 : key(k) {}
Key key
Definition: Table.h:109
template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::Entry ( const Key &  k,
const Value v 
)
inline
113 : key(k), value(v) {}
Key key
Definition: Table.h:109
Value value
Definition: Table.h:110

Member Function Documentation

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::operator!= ( const Entry peer) const
inline
115 { return !operator==(peer); }
bool operator==(const Entry &peer) const
Definition: Table.h:114

+ Here is the call graph for this function:

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
bool G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::operator== ( const Entry peer) const
inline
114 { return (key == peer.key && value == peer.value); }
Key key
Definition: Table.h:109
Value value
Definition: Table.h:110

+ Here is the caller graph for this function:

Member Data Documentation

template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
Key G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::key
template<class Key, class Value, class HashFunc = HashTrait<Key>, class EqualsFunc = EqualsTrait<Key>>
Value G3D::Table< Key, Value, HashFunc, EqualsFunc >::Entry::value

The documentation for this class was generated from the following file: