csScfStringSet Class Reference
The string set is a list of strings, all with different content. More...
#include <csutil/scfstrset.h>
Inheritance diagram for csScfStringSet:

Public Member Functions | |
csScfStringSet () | |
Create an empty scfStringSet object. | |
csScfStringSet (uint32 size) | |
Create an scfStringSet object and set the size of the hash. | |
virtual | ~csScfStringSet () |
Destructor. | |
virtual csStringID | Request (const char *s) |
Request the ID for the given string. | |
virtual const char * | Request (csStringID id) |
Request the string for a given ID. | |
virtual 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 32 of file scfstrset.h.
Constructor & Destructor Documentation
|
Create an empty scfStringSet object.
Definition at line 40 of file scfstrset.h. References SCF_CONSTRUCT_IBASE. |
|
Create an scfStringSet object and set the size of the hash.
Definition at line 44 of file scfstrset.h. References SCF_CONSTRUCT_IBASE. |
|
Destructor.
Definition at line 48 of file scfstrset.h. References SCF_DESTRUCT_IBASE. |
Member Function Documentation
|
Delete all stored strings. When new strings are registered again, new ID values will be used, not the old ones reused. Implements iStringSet. |
|
Request the string for a given ID. Return 0 if the string has not been requested (yet). Implements iStringSet. |
|
Request the ID for the given string. Create a new ID if the string was never requested before. Implements iStringSet. |
The documentation for this class was generated from the following file:
- csutil/scfstrset.h
Generated for Crystal Space by doxygen 1.3.9.1