CrystalSpace

Public API Reference

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

csScfStringSet Class Reference

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

#include <csutil/scfstrset.h>

Inheritance diagram for csScfStringSet:

iStringSet iBase List of all members.

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

csScfStringSet::csScfStringSet  )  [inline]
 

Create an empty scfStringSet object.

Definition at line 40 of file scfstrset.h.

References SCF_CONSTRUCT_IBASE.

csScfStringSet::csScfStringSet uint32  size  )  [inline]
 

Create an scfStringSet object and set the size of the hash.

Definition at line 44 of file scfstrset.h.

References SCF_CONSTRUCT_IBASE.

virtual csScfStringSet::~csScfStringSet  )  [inline, virtual]
 

Destructor.

Definition at line 48 of file scfstrset.h.

References SCF_DESTRUCT_IBASE.


Member Function Documentation

virtual void csScfStringSet::Clear  )  [virtual]
 

Delete all stored strings.

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

Implements iStringSet.

virtual const char* csScfStringSet::Request csStringID  id  )  [virtual]
 

Request the string for a given ID.

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

Implements iStringSet.

virtual csStringID csScfStringSet::Request const char *  s  )  [virtual]
 

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