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