CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csStringSet Class Reference

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

#include <csutil/strset.h>

List of all members.

Public Member Functions

 csStringSet (int size=23)
 Constructor.
 ~csStringSet ()
 Destructor.
csStringID Request (const char *)
 Request the ID for the given string.
char const * Request (csStringID) const
 Request the string for a given ID.
bool Contains (char const *) const
 Check if the set contains a particular string.
void Clear ()
 Delete all stored strings.

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 63 of file strset.h.


Constructor & Destructor Documentation

csStringSet::csStringSet int  size = 23  ) 
 

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; the old ID's will not be re-used.

bool csStringSet::Contains char const *   )  const
 

Check if the set contains a particular string.

char const* csStringSet::Request csStringID   )  const
 

Request the string for a given ID.

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

csStringID csStringSet::Request const char *   ) 
 

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.3.9.1