CrystalSpace

Public API Reference

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

csScfStringSet Class Reference

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

#include <scfstrset.h>

Inheritance diagram for csScfStringSet:

iStringSet iBase List of all members.

Public Methods

 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 31 of file scfstrset.h.


Constructor & Destructor Documentation

csScfStringSet::csScfStringSet   [inline]
 

Create an empty scfStringSet object.

Definition at line 39 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 43 of file scfstrset.h.

References SCF_CONSTRUCT_IBASE.

virtual csScfStringSet::~csScfStringSet   [inline, virtual]
 

Destructor.

Definition at line 47 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.2.18