#include <GContainers.h>
Public Member Functions | |
GHashTable (int Size=0, bool Case=true) | |
Constructs the hash table. | |
GHashTable (List< char > &strs) | |
Constructs the hash table. | |
virtual | ~GHashTable () |
Deletes the hash table removing all contents from memory. | |
void | Set (List< char > &strs) |
Sets the hash table contents to the list of strings. | |
int64 | GetSize () |
Gets the total available entries. | |
void | SetSize (int64 s) |
Sets the total available entries. | |
bool | GetStringPool () |
Gets the string pooling setting. | |
void | SetStringPool (bool b) |
bool | IsCase () |
Returns whether the keys are case sensitive. | |
void | IsCase (bool c) |
Sets whether the keys are case sensitive. | |
bool | IsOk () |
Returns true if the object appears to be valid. | |
int | Length () |
Gets the number of entries used. | |
bool | Add (char *Key, void *Value=(void *) 1) |
Adds a value under a given key. | |
bool | Delete (char *Key) |
Deletes a value at 'key'. | |
void * | Find (char *Key) |
Returns the value at 'key'. | |
void * | First (char **Key=0) |
Returns the first value. | |
void * | Current (char **Key=0) |
Returns the current value. | |
void * | Next (char **Key=0) |
Returns the next value. | |
void | Empty () |
Removes all key/value pairs from memory. |
|
Constructs the hash table.
|
|
Constructs the hash table.
|
|
Adds a value under a given key.
|
|
Deletes a value at 'key'.
|
|
Sets the hash table contents to the list of strings.
|
|
Sets the string pooling setting. String pooling lowers the number of memory allocs/frees but will waste memory if you delete keys. Good for fairly large static tables. |