HashedString Class Reference
#include <hashedstring.h>
Public Member Functions | |
| HashedString (const TQString &str) | |
| HashedString (const char *str) | |
| size_t | hash () const |
| TQString | str () const |
| bool | operator== (const HashedString &rhs) const |
| bool | operator< (const HashedString &rhs) const |
Static Public Member Functions | |
| static size_t | hashString (const TQString &str) |
Friends | |
| TQDataStream & | operator<< (TQDataStream &stream, const HashedString &str) |
| TQDataStream & | operator>> (TQDataStream &stream, HashedString &str) |
Detailed Description
A simple class that stores a string together with it's appropriate hash-key.
Definition at line 26 of file hashedstring.h.
Constructor & Destructor Documentation
◆ HashedString() [1/3]
|
inline |
Definition at line 28 of file hashedstring.h.
◆ HashedString() [2/3]
|
inline |
Definition at line 30 of file hashedstring.h.
◆ HashedString() [3/3]
|
inline |
Definition at line 34 of file hashedstring.h.
Member Function Documentation
◆ hash()
|
inline |
Definition at line 38 of file hashedstring.h.
◆ hashString()
|
static |
Definition at line 38 of file hashedstring.cpp.
◆ operator<()
|
inline |
Does not compare alphabetically, uses the hash-key for ordering.
Definition at line 53 of file hashedstring.h.
◆ operator==()
|
inline |
Definition at line 46 of file hashedstring.h.
◆ str()
|
inline |
Definition at line 42 of file hashedstring.h.
Friends And Related Symbol Documentation
◆ operator<<
|
friend |
Definition at line 275 of file hashedstring.cpp.
◆ operator>>
|
friend |
Definition at line 281 of file hashedstring.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference