|
Public Member Functions |
| HashTable () |
| HashTable (int) |
void | MakeTable () |
bool | IsEmpty () |
void | Dump (std::ostream &) |
int | AddEntry (char *key, HashValue value, int *index=0) |
int | AddEntry (bool, char *key, int len, HashValue value, int *index=0) |
int | AddEntry (char *key, int len, HashValue value, int *index=0) |
int | AddDupEntry (char *key, int len, HashValue value, int *index=0) |
bool | Lookup (char *key, HashValue *value) |
bool | Lookup (char *key, int len, HashValue *value) |
bool | LookupEntries (char *key, int len, HashValue *value, int &nth) |
HashValue | Peek (int index) |
bool | RemoveEntry (char *key) |
bool | RemoveEntry (char *key, int len) |
void | ReplaceValue (int index, HashValue value) |
Protected Member Functions |
char * | KeyString (char *key) |
char * | KeyString (char *key, int len) |
bool | Lookup2 (char *key, HashValue *val, int *index) |
bool | Lookup2 (char *key, int len, HashValue *val, int *index) |
bool | GrowTable (int increment) |
unsigned int | StringToInt (char *) |
unsigned int | StringToInt (char *, int) |
int | HashFunc (unsigned int p, int n) |
Static Protected Member Functions |
uint | NextPrimeNumber (uint number) |
Protected Attributes |
HashTableEntry * | entries |
int | Size |
int | Prime2 |