5 inline bool HashedString::operator<(
const HashedString& src)
const
7 return m_hash != src.m_hash ? m_hash < src.m_hash : m_string < src.m_string;
10 inline bool HashedString::operator==(
const HashedString& src)
const
12 return m_hash == src.m_hash && m_string == src.m_string;
15 inline bool HashedString::operator!=(
const char* value)
const
17 return m_string != value;
20 inline bool HashedString::operator!=(
const std::string& value)
const
22 return m_string != value;
25 inline HashedString& HashedString::operator=(
const std::string& other)
29 m_hash = hash.seed[0] ^ hash.seed[1];
34 inline const std::string& HashedString::string()
const {
return m_string; }
36 inline size_t HashedString::hash()
const {
return m_hash; }
38 inline HashedString::operator
const std::string & ()
const {
return m_string; }
40 inline const char *HashedString::c_str()
const {
return m_string.c_str(); }
42 inline std::string HashedString::operator+(
const char* value)
const {
return m_string + value; }
44 inline std::string HashedString::operator+(
const std::string& value)
const {
return m_string + value; }
46 inline size_t HashedString::size()
const {
return m_string.size(); }
48 inline size_t HashedString::find(
const std::string& value,
size_t offset)
const {
return m_string.find(value, offset); }
50 inline size_t HashedString::rfind(
const std::string& value,
size_t offset)
const {
return m_string.rfind(value, offset); }
52 inline std::string HashedString::substr(
size_t offset,
size_t count)
const {
return m_string.substr(offset, count); }
54 inline bool HashedString::empty()
const {
return m_string.empty(); }
57 inline size_t memSize(
const HashedString& data)
59 return memSize(data.string());
63 inline Archive& operator<<(Archive& os,
const HashedString& obj)
70 inline Archive& operator >> (Archive& is, HashedString& obj)
78 inline std::ostream& operator<<(std::ostream& os,
const HashedString& obj)
87 return lhs + rhs.string();
92 return std::string(lhs) + rhs.string();
Definition: HashedString.h:21
AtomsCore namespace.
Definition: Agent.h:344