![]() |
Public API Reference |
#include <strhash.h>
Public Methods | |
csStringHash (uint32 size=211) | |
Constructor. More... | |
~csStringHash () | |
Destructor. More... | |
const char * | Register (const char *s, csStringID id) |
Register a string with an id. More... | |
csStringID | Request (const char *s) |
Request the ID for the given string. More... | |
const char * | Request (csStringID id) |
Request the string for a given ID. More... | |
void | Clear () |
Delete all stored strings. More... | |
Friends | |
class | csStringHashIterator |
Each string has an ID number.
Definition at line 70 of file strhash.h.
|
Constructor.
|
|
Destructor.
|
|
Delete all stored strings.
|
|
Register a string with an id. Returns the pointer to the copy of the string in this hash. |
|
Request the string for a given ID. Return 0 if the string has not been requested (yet). |
|
Request the ID for the given string. Return csInvalidStringID if the string was never requested before. |