32-bit hash value for a string.
More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Math/StringHash.h>
|
| StringHash () noexcept |
| Construct with zero value.
|
|
| StringHash (const StringHash &rhs) noexcept=default |
| Copy-construct from another hash.
|
|
constexpr | StringHash (hash32 value) noexcept |
| Construct with an initial value.
|
|
constexpr | StringHash (const char *str) noexcept |
|
| StringHash (const String &str) noexcept |
| Construct from a string.
|
|
StringHash & | operator= (const StringHash &rhs) noexcept=default |
| 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 |
| Test for equality with another hash.
|
|
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.
|
|
hash32 | Value () const |
| Return hash value.
|
|
String | ToString () const |
| Return as string.
|
|
String | Reverse () const |
| Return string which has specific hash value. Return first string if many (in order of calculation). Use for debug purposes only. Return empty string if URHO3D_HASH_DEBUG is off.
|
|
hash32 | ToHash () const |
| Return hash value for HashSet & HashMap.
|
|
|
static constexpr hash32 | Calculate (const char *str, hash32 hash=0) |
| Calculate hash value from a C string.
|
|
static StringHashRegister * | GetGlobalStringHashRegister () |
| Get global StringHashRegister. Use for debug purposes only. Return nullptr if URHO3D_HASH_DEBUG is off.
|
|
|
hash32 | value_ |
| Hash value.
|
|
32-bit hash value for a string.
The documentation for this class was generated from the following files:
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Math/StringHash.h
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Math/StringHash.cpp