CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csStringSet Class Reference

The string set is a list of strings, all with different content. More...

#include <strset.h>

List of all members.

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


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

csStringSet::csStringSet uint32    size = 211
 

Constructor.

csStringSet::~csStringSet  
 

Destructor.


Member Function Documentation

void csStringSet::Clear  
 

Delete all stored strings.

When new strings are registered again, new ID values will be used, not the old ones reused.

const char* csStringSet::Request csStringID    id
 

Request the string for a given ID.

Return NULL if the string has not been requested (yet).

csStringID csStringSet::Request const char *    s
 

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:
Generated for Crystal Space by doxygen 1.2.14