![]() |
Polygon Crucher SDK - Documentation
Documentation
|
CHashMap is a template class that associates key to a single value through an hash table. More...
CHashMap is a template class that associates key to a single value through an hash table.
#include <HashMap.h>
Public Types | |
enum | KindOfEntry { Active , Empty , Deleted } |
Public Member Functions | |
CHashMap (unsigned int defaultSize=DefaultHashSize) | |
CHashMap (const CHashMap &Rhs) | |
const CHashMap & | operator= (const CHashMap &Rhs) |
int | Insert2 (const ARG_KEY K, const VALUE V) |
int | Insert (const ARG_KEY K, const VALUE &V) |
int | Remove (const ARG_KEY K, bool enableResize=false) |
int | Find (const ARG_KEY K, VALUE &V) const |
int | Find (const ARG_KEY K, VALUE *&V) const |
VALUE * | Find (const ARG_KEY K) const |
int | IsFound (const ARG_KEY K) const |
int | IsEmpty () const |
void | Free () |
void | Clear () |
unsigned int | GetCount () const |
HashPos | GetFirst () const |
void | GetNext (HashPos &pos, KEY &element, VALUE &value) const |
void | GetNext (HashPos &pos, KEY &element, VALUE *&value) const |
KEY & | GetNext (HashPos &pos, VALUE &value) const |
void | GetNext (HashPos &pos, KEY *element, VALUE *value) const |
KEY * | GetNext (HashPos &pos, VALUE *&value) const |
void | InitHashTable (unsigned int elementsNumber) |
unsigned int | GetHashTableSize () const |
bool | Minimize () |
void | Merge (const CHashMap &Rhs) |
void | Remove (const CHashMap &Rhs) |