![]() |
PUMA Library Reference Manual
|
#include <Puma/StrHashTable.h>
String hash table backed by a fixed size array of single-linked chains.
Public Member Functions | |
| StrHashTable () | |
| Construct a new empty hash table. | |
| StrHashKey * | empty () const |
| Get the empty hash table item used for comparison purposes. | |
| StrHashKey * | insert (const char *str) |
| Add a string to the hash table. | |
| void | clear () |
| Clear the hash table and free all copied strings. | |
|
inline |
Construct a new empty hash table.
| void Puma::StrHashTable::clear | ( | ) |
Clear the hash table and free all copied strings.
|
inline |
Get the empty hash table item used for comparison purposes.
| StrHashKey * Puma::StrHashTable::insert | ( | const char * | str | ) |
Add a string to the hash table.
Does not add strings twice. Added strings are copied.
| str | The string to add. |