|  | OGRE 2.1
    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. | |
| 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.
| 
 | inline | 
Returns "[Hash 0x0a0100ef]" strings in Release mode, readable string in debug.
References getReleaseText().
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().
| 
 | inline | 
Always returns "[Hash 0x0a0100ef]" strings in any mode.
References mHash, and OGRE_HASH_BITS.
Referenced by getFriendlyText(), and getFriendlyText().
C String version. Zero allocations. See getFriendlyText.
References mHash, and OGRE_HASH_BITS.
References mHash, OGRE_APPEND_DEBUG_STRING, OGRE_HASH_FUNC, and Seed.
| uint32 Ogre::IdString::mHash | 
Referenced by IdString(), IdString(), IdString(), getReleaseText(), getReleaseText(), operator!=(), operator+=(), operator<(), and operator==().
Referenced by IdString(), IdString(), IdString(), and operator+=().