Documentation
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
Private Attributes |
List of all members
Urho3D::StringHash Class Reference
32-bit hash value for a string. More...
#include <StringHash.h>
Collaboration diagram for Urho3D::StringHash:
Public Member Functions | |
StringHash () | |
Construct with zero value. | |
StringHash (const StringHash &rhs) | |
Copy-construct from another hash. | |
StringHash (unsigned value) | |
Construct with an initial value. | |
StringHash (const char *str) | |
Construct from a C string case-insensitively. | |
StringHash (const String &str) | |
Construct from a string case-insensitively. | |
StringHash & | operator= (const StringHash &rhs) |
Assign from another hash. | |
StringHash | operator+ (const StringHash &rhs) const |
Add a hash. | |
StringHash & | operator+= (const StringHash &rhs) |
Add-assign a hash. | |
bool | operator== (const StringHash &rhs) const |
bool | operator!= (const StringHash &rhs) const |
Test for inequality with another hash. | |
bool | operator< (const StringHash &rhs) const |
Test if less than another hash. | |
bool | operator> (const StringHash &rhs) const |
Test if greater than another hash. | |
operator bool () const | |
Return true if nonzero hash value. | |
unsigned | 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 | Calculate (const char *str) |
Calculate hash value case-insensitively from a C string. | |
Static Public Attributes | |
static const StringHash | ZERO |
Zero hash. | |
Private Attributes | |
unsigned | value_ |
Hash value. | |
Detailed Description
32-bit hash value for a string.
The documentation for this class was generated from the following files:
- /home/travis/build/urho3d/Urho3D/Source/Urho3D/Math/StringHash.h
- /home/travis/build/urho3d/Urho3D/Source/Urho3D/Math/StringHash.cpp