Public Member Functions | |
StringHash (int startsize=32) | |
void | Grow () |
void | Shrink () |
void | SetSize (int newsize) |
void | Clear () |
int | Capacity () const |
int | Entries () const |
void * | Object (int i) const |
void * | Object (const String &key) const |
void * | Object (const String &key, void *(*create_object)()) |
void | SetObject (int i, void *object) |
void | SetObject (const String &key, void *object) |
int | Add (const String &s, void *object=NULL) |
int | Find (const String &s, void *(*create_object)()=NULL) |
int | Find (const String &s) const |
StringHash & | operator= (const StringHash &rhs) |
const String & | operator[] (int i) const |
String & | operator[] (int i) |
void | Delete (unsigned int index) |
void | Delete (const String &key) |
bool | SlotInUse (int index) const |
void | Print () |
void | Print (FILE *file) |
void | Print (const char *filename) |
String | StringList (char separator= ',') |
void | ReadLinesFromFile (FILE *file) |
void | ReadLinesFromFile (const char *filename) |
void | Swap (StringHash &s) |
Static Public Member Functions | |
static void * | CreateHash () |
Protected Attributes | |
String ** | strings |
void ** | objects |
unsigned int * | keys |
unsigned int | count |
unsigned int | size |
unsigned int | mask |
Definition at line 25 of file StringHash.h.