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