nAtom Class Reference
#include <natom.h>
Detailed Description
Atoms are shared read-only strings which only require 2 bytes of memory per instance and have extremly fast compare and copy operations.(C) 2004 RadonLabs GmbH
Definition at line 16 of file natom.h.
Public Member Functions | |
| nAtom () | |
| default constructor | |
| nAtom (const char *str) | |
| constructor from char pointer, in default global table | |
| nAtom (const nAtom &rhs) | |
| copy constructor | |
| ~nAtom () | |
| destructor | |
| void | operator= (const nAtom &rhs) |
| assignment operator | |
| void | operator= (const char *rhs) |
| assignment operator with char pointer | |
| bool | operator== (const nAtom &rhs) const |
| equality operator | |
| bool | operator== (const char *rhs) const |
| equality operator with char pointer | |
| bool | operator!= (const nAtom &rhs) const |
| inequality operator | |
| bool | operator!= (const char *rhs) const |
| inequality operator with char pointer | |
| const char * | AsChar () const |
| return string as const char* | |
| const nString & | AsString () const |
| return string as const nString& | |
| const nString & | operator * () const |
| cast to nString | |
Protected Types | |
| enum | { InvalidKey = 0xffff } |
Protected Attributes | |
| ushort | key |
Member Enumeration Documentation
|
|
|
Constructor & Destructor Documentation
|
|
default constructor
|
|
|
constructor from char pointer, in default global table
|
|
|
copy constructor
|
|
|
destructor
|
Member Function Documentation
|
|
assignment operator
|
|
|
assignment operator with char pointer
|
|
|
equality operator
|
|
|
equality operator with char pointer WARNING: this ends up as a normal string compare! |
|
|
inequality operator
|
|
|
inequality operator with char pointer WARNING: this ends up as a normal string compare! |
|
|
return string as const char* Return string as const char* |
|
|
return string as const nString& Return string as const nString& |
|
|
cast to nString Cast to "const nString&". |
Member Data Documentation
|
|
|
The documentation for this class was generated from the following file: