
#include <cascade/util/CascadeHashTable.h>
Inheritance diagram for CascadeHashTable< KEY, DATA >:

Public Types | |
| typedef bool() | EntryEnumProc (const KEY &key, const DATA &data, void *pClientData) |
Public Member Functions | |
| CascadeHashTable (u32 nInitialTableSize=kMinTableSize) | |
| virtual | ~CascadeHashTable () |
| bool | SetAt (const KEY &key, const DATA &data) |
| bool | GetAt (const KEY &key, DATA &dataToSet) const |
| u32 | GetSize () const |
| bool | RemoveAt (const KEY &key) |
| void | RemoveAllEntries () |
| bool | EnumerateEntries (EntryEnumProc *pEnumProc, void *pClientData) const |
Protected Types | |
| enum | { kMinTableSize = 8, kExpansionFactor = 3 } |
Protected Member Functions | |
| void | ExpandTable () |
Protected Attributes | |
| u32 | m_nSize |
| CascadeNewArray< KeyDataPair * > | m_table |
Classes | |
| class | KeyDataPair |
CascadeHashTable allows mapping keys to values for arbitrary key and value types - even C++ class objects. Comparison functions are provided for some common key/value pairings, and the client can provide their own comparison functions if necessary
|
|||||
|
|
|
|||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.1