Urho3D
|
16-bit hash value for a string. More...
#include <StringHash.h>
Public Member Functions | |
ShortStringHash () | |
Construct with zero hash value. | |
ShortStringHash (const ShortStringHash &rhs) | |
Copy-construct from another hash value. | |
ShortStringHash (const StringHash &rhs) | |
Copy-construct from another 32-bit hash value (ignore the high bits.) | |
ShortStringHash (unsigned short value) | |
Construct with an initial value. | |
ShortStringHash (const char *str) | |
Construct from a C string case-insensitively. | |
ShortStringHash (const String &str) | |
Construct from a string case-insensitively. | |
ShortStringHash & | operator= (const ShortStringHash &rhs) |
Assign from another hash. | |
ShortStringHash | operator+ (const ShortStringHash &rhs) const |
Add a hash. | |
ShortStringHash & | operator+= (const ShortStringHash &rhs) |
bool | operator== (const ShortStringHash &rhs) const |
Test for equality with another hash. | |
bool | operator!= (const ShortStringHash &rhs) const |
Test for inequality with another hash. | |
bool | operator< (const ShortStringHash &rhs) const |
Test if less than another hash. | |
bool | operator> (const ShortStringHash &rhs) const |
Test if greater than another hash. | |
operator bool () const | |
Return true if nonzero hash value. | |
unsigned short | Value () const |
Return hash value. | |
String | ToString () const |
Return as string. | |
unsigned | ToHash () const |
Return hash value for HashSet & HashMap. |
Static Public Member Functions | |
static unsigned short | Calculate (const char *str) |
Calculate hash value case-insensitively from a C string. |
Static Public Attributes | |
static const ShortStringHash | ZERO |
Zero hash. |
Private Attributes | |
unsigned short | value_ |
Hash value. |
16-bit hash value for a string.