#include <core/hashstring.h>
Public Member Functions | |
| HashString () | |
| Construct empty string. | |
| HashString (const std::string &str) | |
| Assign string. | |
| HashString (const char *p_str) | |
| Assign string. | |
| HashString (const char *p_str, unsigned int num) | |
| Assign substring. | |
| unsigned int | getHash () const |
| Get hash value. | |
| std::string::size_type | length () const |
| Get length of string. | |
| const std::string & | str () const |
| Get string. | |
| const char * | c_str () const |
| Get C-style string. | |
| bool | operator== (const HashString &rhs) const |
| Compare hashed strings. | |
| bool | operator== (const std::string &rhs) const |
| Compare strings. | |
| bool | operator== (const char *p_rhs) const |
| Compare strings. | |
| bool | operator!= (const HashString &rhs) const |
| Compare hashed strings. | |
| bool | operator!= (const std::string &rhs) const |
| Compare strings. | |
| bool | operator!= (const char *p_rhs) const |
| Compare strings. | |
| HashString & | operator= (const HashString &rhs) |
| Assign. | |
| HashString & | operator= (const std::string &rhs) |
| Assign. | |
| HashString & | operator= (const char *p_rhs) |
| Assign. | |
| HashString & | operator+= (const HashString &rhs) |
| Concatenate and assign. | |
| HashString & | operator+= (const std::string &rhs) |
| Concatenate and assign. | |
| HashString & | operator+= (const char *p_rhs) |
| Concatenate and assign. | |
| const HashString | operator+ (const HashString &rhs) const |
| Concatenate. | |
| const HashString | operator+ (const std::string &rhs) |
| Concatenate. | |
| const HashString | operator+ (const char *p_rhs) |
| Concatenate. | |
| operator const std::string & () const | |
| Implicit conversion to std::string. | |
| neo::core::HashString::HashString | ( | const std::string & | str | ) | [inline] |
Assign string and calculate hash
| str | String |
| neo::core::HashString::HashString | ( | const char * | p_str | ) | [inline] |
Assign string and calculate hash
| p_str | String |
| neo::core::HashString::HashString | ( | const char * | p_str, | |
| unsigned int | num | |||
| ) | [inline] |
Assign substring and calculate hash
| p_str | String | |
| num | Length of string |
| unsigned int neo::core::HashString::getHash | ( | ) | const [inline] |
| std::string::size_type neo::core::HashString::length | ( | ) | const [inline] |
| const std::string & neo::core::HashString::str | ( | ) | const [inline] |
| const char * neo::core::HashString::c_str | ( | ) | const [inline] |
Get string as C-style char*
| bool neo::core::HashString::operator== | ( | const HashString & | rhs | ) | const [inline] |
Compare hashed strings by first comparing hash values, and only comparing the actual strings if those match (must be done to avoid false positives for hash collisions).
| rhs | String to compare with |
| bool neo::core::HashString::operator== | ( | const std::string & | rhs | ) | const [inline] |
Compare strings (does not use hash)
| rhs | String to compare with |
| bool neo::core::HashString::operator== | ( | const char * | p_rhs | ) | const [inline] |
Compare strings as C-style char* (does not use hash)
| p_rhs | String to compare with |
| bool neo::core::HashString::operator!= | ( | const HashString & | rhs | ) | const [inline] |
Compare hashed strings by first comparing hash values, and only comparing the actual strings if those match (must be done to avoid false positives for hash collisions).
| rhs | String to compare with |
| bool neo::core::HashString::operator!= | ( | const std::string & | rhs | ) | const [inline] |
Compare strings (does not use hash)
| rhs | String to compare with |
| bool neo::core::HashString::operator!= | ( | const char * | p_rhs | ) | const [inline] |
Compare strings as C-style char* (does not use hash)
| p_rhs | String to compare with |
| HashString & neo::core::HashString::operator= | ( | const HashString & | rhs | ) | [inline] |
Assign from hashed string
| rhs | String |
| HashString & neo::core::HashString::operator= | ( | const std::string & | rhs | ) | [inline] |
Assign from string and calculate hash
| rhs | String |
| HashString & neo::core::HashString::operator= | ( | const char * | p_rhs | ) | [inline] |
Assign from C-style string and calculate hash
| p_rhs | String |
| HashString & neo::core::HashString::operator+= | ( | const HashString & | rhs | ) | [inline] |
Concatenate with hashed string and calculate hash
| rhs | String |
| HashString & neo::core::HashString::operator+= | ( | const std::string & | rhs | ) | [inline] |
Concatenate with string and calculate hash
| rhs | String |
| HashString & neo::core::HashString::operator+= | ( | const char * | p_rhs | ) | [inline] |
Concatenate with C-style string and calculate hash
| p_rhs | String |
| const HashString neo::core::HashString::operator+ | ( | const HashString & | rhs | ) | const [inline] |
Concatenate with hashed string and calculate hash
| rhs | String |
| const HashString neo::core::HashString::operator+ | ( | const std::string & | rhs | ) | [inline] |
Concatenate with string and calculate hash
| rhs | String |
| const HashString neo::core::HashString::operator+ | ( | const char * | p_rhs | ) | [inline] |
Concatenate with C-style string and hash
| p_rhs | String |
1.5.1