nAtomTable Class Reference
[Nebula Kernel]
#include <natomtable.h>
Detailed Description
An atom table is where atoms store their strings.FIXME: hmm, the table can not shrink, is this even desirable??? (shrinking the table would invalidate all nAtoms out there!).
May be manually, expensive garbage collection pass would help? But in this case Atoms would need to become invalid some (and need to be able to revalidates themselves). This is only possible if the atom table stores pointers to all its atoms.... hmm hmm hmm...
(C) 2004 RadonLabs GmbH
Definition at line 25 of file natomtable.h.
Public Member Functions | |
| nAtomTable () | |
| constructor | |
| ~nAtomTable () | |
| destructor | |
| ushort | StringToKey (const char *str) |
| convert a string into an index | |
| const nString & | KeyToString (ushort key) const |
| convert an index into a string | |
Static Public Member Functions | |
| static nAtomTable * | Instance () |
| return pointer to singleton instance | |
Constructor & Destructor Documentation
|
|
constructor nAtomTable constructor. Note that nAtomTable is a Singleton. Definition at line 13 of file natomtable.cc. |
|
|
destructor nAtomTable destructor. Definition at line 24 of file natomtable.cc. |
Member Function Documentation
|
|
return pointer to singleton instance
Definition at line 49 of file natomtable.h. |
|
|
convert a string into an index Map string to 16 bit key. Definition at line 61 of file natomtable.h. |
|
|
convert an index into a string Convert 16 bit key to string. Definition at line 72 of file natomtable.h. |
The documentation for this class was generated from the following files: