|
| CFX_MapPtrTemplate (IFX_Allocator *pAllocator=0) |
| Default constructor. More...
|
|
void | GetNextAssoc (FX_POSITION &rNextPosition, KeyType &rKey, ValueType &rValue) const |
| Get the current association and set the position to next association. More...
|
|
FX_BOOL | Lookup (KeyType key, ValueType &rValue) const |
| Lookup by a key. More...
|
|
ValueType & | operator[] (KeyType key) |
| Subscript([]) operator overload. Lookup and add if not there. More...
|
|
FX_BOOL | RemoveKey (KeyType key) |
| Remove existing (key, ?) pair. More...
|
|
void | SetAt (KeyType key, ValueType newValue) |
| Add a new (key, value) pair. Add if not exist, otherwise modify. More...
|
|
| CFX_MapPtrToPtr (int nBlockSize=10, IFX_Allocator *pAllocator=0) |
| Construct with specified block size. More...
|
|
| ~CFX_MapPtrToPtr () |
| The Destructor.
|
|
int | GetCount () const |
| Get the number of elements. More...
|
|
FX_DWORD | GetHashTableSize () const |
| Get the internal hash table size. Advanced features for derived classes. More...
|
|
void | GetNextAssoc (FX_POSITION &rNextPosition, void *&rKey, void *&rValue) const |
| Get the current association and set the position to next association. More...
|
|
FX_POSITION | GetStartPosition () const |
| Get the first key-value pair position. iterating all (key, value) pairs. More...
|
|
void * | GetValueAt (void *key) const |
| Get a value pointer by a key. More...
|
|
void | InitHashTable (FX_DWORD hashSize, FX_BOOL bAllocNow=true) |
| Initialize the hash table. More...
|
|
FX_BOOL | IsEmpty () const |
| Verify whether the map is empty. More...
|
|
FX_BOOL | Lookup (void *key, void *&rValue) const |
| Lookup by a key. More...
|
|
void *& | operator[] (void *key) |
| Subscript([]) operator overload. Lookup and add if not there. More...
|
|
void | RemoveAll () |
| Remove all the (key, value) pairs in the map. More...
|
|
FX_BOOL | RemoveKey (void *key) |
| Removing existing (key, ?) pair. More...
|
|
void | SetAt (void *key, void *newValue) |
| Add a new (key, value) pair. Add if not exist, otherwise modify. More...
|
|
template<class KeyType, class ValueType>
class CFX_MapPtrTemplate< KeyType, ValueType >
The class represents POINTER/DWORD TO POINTER/DWORD MAP template.