csStringSet Class Reference
The string set is a list of strings, all with different content. More...
#include <strset.h>
Public Methods | |
csStringSet (uint32 size=211) | |
Constructor. | |
~csStringSet () | |
Destructor. | |
csStringID | Request (const char *s) |
Request the ID for the given string. | |
const char * | Request (csStringID id) const |
Request the string for a given ID. | |
void | Clear () |
Delete all stored strings. |
Detailed Description
The string set is a list of strings, all with different content.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 strset.h.
Constructor & Destructor Documentation
|
Constructor.
|
|
Destructor.
|
Member Function Documentation
|
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. |
The documentation for this class was generated from the following file:
- csutil/strset.h
Generated for Crystal Space by doxygen 1.2.18