| Puma Reference Manual | Puma::DString Class Reference |
Global hash table based string container. More...
#include <Puma/DString.h>
Public Member Functions | |
| DString () | |
| Constructor. More... | |
| DString (const char *s) | |
| Constructor. More... | |
| DString (const DString &s) | |
| Copy constructor. More... | |
| ~DString () | |
| Destructor. More... | |
| DString & | operator= (const DString &s) |
| Assignment operator. More... | |
| DString & | operator= (const char *s) |
| Assignment operator. More... | |
| bool | operator== (const DString &s) const |
| Check if the given string equals this string. More... | |
| bool | operator!= (const DString &s) const |
| Check if the given string not equals this string. More... | |
| const char * | c_str () const |
| Get the contained C string. More... | |
| unsigned int | length () const |
| Get the length of the string. More... | |
| bool | empty () const |
| Check if the string is empty (length=0). More... | |
| unsigned int | magic () const |
| Get the magic number of the string. More... | |
| operator const char * () const | |
| Get the contained C string. More... | |
Static Public Member Functions | |
| static void | clearDict () |
| Clear the global string hash table. More... | |
Global hash table based string container.
|
inline |
Constructor.
|
inline |
Constructor.
| s | The string, is put into the hash table. |
|
inline |
Copy constructor.
| s | The string to copy. |
|
inline |
Destructor.
|
inline |
Get the contained C string.
|
inlinestatic |
Clear the global string hash table.
|
inline |
Check if the string is empty (length=0).
|
inline |
Get the length of the string.
|
inline |
Get the magic number of the string.
|
inline |
Get the contained C string.
|
inline |
Check if the given string not equals this string.
| s | The string to compare with. |
Assignment operator.
| s | The string to copy. |
|
inline |
Assignment operator.
| s | The string to copy. |
|
inline |
Check if the given string equals this string.
| s | The string to compare with. |