![]() |
OGRE-Next 4.0.0unstable
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. | |
void | getFriendlyText (char *outCStr, size_t stringSize) const |
C String version. | |
std::string | getReleaseText () const |
Always returns "[Hash 0x0a0100ef]" strings in any mode. | |
void | getReleaseText (char *outCStr, size_t stringSize) const |
C String version. Zero allocations. See getFriendlyText. | |
uint32 | getU32Value () const |
Return a 32-bit value of the internal hash. | |
void | OGRE_APPEND_DEBUG_STRING (const char *string) |
void | OGRE_COPY_DEBUG_STRING (const char *string) |
void | OGRE_COPY_DEBUG_STRING (const std::string &string) |
void | OGRE_COPY_DEBUG_STRING (uint32 value) |
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 | |
char | mDebugString [OGRE_DEBUG_STR_SIZE] |
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 mDebugString.
|
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.
|
inline |
Returns "[Hash 0x0a0100ef]" strings in Release mode, readable string in debug.
References getReleaseText(), and mDebugString.
|
inline |
C String version.
Zero allocations.
outCStr | C String to store the string. |
stringSize | Size of of outCStr. Recommended size: OGRE_DEBUG_STR_SIZE |
References getReleaseText(), mDebugString, and OGRE_DEBUG_STR_SIZE.
|
inline |
Always returns "[Hash 0x0a0100ef]" strings in any mode.
References mHash, and OGRE_HASH_BITS.
Referenced by getFriendlyText(), and getFriendlyText().
|
inline |
C String version. Zero allocations. See getFriendlyText.
References mHash.
|
inline |
Return a 32-bit value of the internal hash.
Note: If hash size is higher than 32 bits; using this value MIGHT still cause collisions that go undetected.
References mHash.
|
inline |
References mDebugString, and OGRE_DEBUG_STR_SIZE.
Referenced by operator+=().
|
inline |
References mDebugString, and OGRE_DEBUG_STR_SIZE.
Referenced by IdString(), IdString(), and IdString().
|
inline |
References mDebugString, and OGRE_DEBUG_STR_SIZE.
|
inline |
References mDebugString, and OGRE_DEBUG_STR_SIZE.
|
inline |
References mDebugString, mHash, and OGRE_ASSERT_MEDIUM.
|
inline |
References mDebugString, mHash, OGRE_APPEND_DEBUG_STRING(), OGRE_HASH_FUNC, and Seed.
|
inline |
References mDebugString, mHash, and OGRE_ASSERT_MEDIUM.
|
inline |
References mDebugString, mHash, and OGRE_ASSERT_MEDIUM.
char Ogre::IdString::mDebugString[OGRE_DEBUG_STR_SIZE] |
uint32 Ogre::IdString::mHash |
Referenced by IdString(), IdString(), IdString(), getReleaseText(), getReleaseText(), getU32Value(), operator!=(), operator+=(), operator<(), and operator==().
|
static |
Referenced by IdString(), IdString(), IdString(), Ogre::generateAbiCookie(), and operator+=().