![]() |
Public API Reference |
#include <strset.h>
Public Methods | |
csStringSet (uint32 size=211) | |
Constructor. More... | |
~csStringSet () | |
Destructor. 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 | csStringSetIterator |
Each string has an ID number. The most important operation is to request a string, which means to return the ID for the string, adding it to the list if it is not already there.
Definition at line 62 of file csutil/strset.h.
|
Constructor.
|
|
Destructor.
|
|
Delete all stored strings. When new strings are registered again, new ID values will be used, not the old ones reused. |
|
Request the string for a given ID. Return 0 if the string has not been requested (yet). |
|
Request the ID for the given string. Create a new ID if the string was never requested before. |