![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Hashed string. More...
#include <OgreIdString.h>
Public Member Functions | |
IdString () | |
IdString (const char *string) | |
IdString (const std::string &string) | |
IdString (uint32 value) | |
std::string | getFriendlyText () const |
Returns "[Hash 0x0a0100ef]" strings in Release mode, readable string in debug. | |
std::string | getReleaseText () const |
Always returns "[Hash 0x0a0100ef]" strings in any mode. | |
bool | operator!= (IdString idString) const |
IdString | operator+ (IdString idString) const |
void | operator+= (IdString idString) |
bool | operator< (IdString idString) const |
bool | operator== (IdString idString) const |
Public Attributes | |
uint32 | mHash |
Static Public Attributes | |
static const uint32_t | Seed = 0x3A8EFA67 |
Hashed string.
An IdString is meant to be passed by value rather than by reference since in Release mode it's just an encapsulated integer. The default implementation uses a 32-bit uint. A hash = 0 is the default initialization, and assumed by Ogre to mean an IdString is empty or unspecified.
|
inline |
References mHash, OGRE_COPY_DEBUG_STRING, OGRE_HASH_FUNC, and Seed.
|
inline |
References mHash, OGRE_COPY_DEBUG_STRING, OGRE_HASH_FUNC, and Seed.
|
inline |
References mHash, OGRE_COPY_DEBUG_STRING, OGRE_HASH_FUNC, and Seed.
References mHash, OGRE_APPEND_DEBUG_STRING, OGRE_HASH_FUNC, and Seed.
|
inline |
Returns "[Hash 0x0a0100ef]" strings in Release mode, readable string in debug.
References getReleaseText().
|
inline |
Always returns "[Hash 0x0a0100ef]" strings in any mode.
References mHash, and OGRE_HASH_BITS.
Referenced by getFriendlyText().
Referenced by IdString(), IdString(), IdString(), Ogre::calcHash(), and operator+=().
uint32 Ogre::IdString::mHash |
Referenced by IdString(), IdString(), IdString(), getReleaseText(), operator!=(), operator+=(), operator<(), and operator==().