11 using HashMap = std::map<Grindstone::HashValue, Grindstone::String>;
12 static void CreateHashMap();
13 static HashMap* GetHashedStringMap();
14 static void SetHashMap(HashMap* hashMap);
16 explicit HashedString(
const char* inStringRef);
17 explicit HashedString(
const String& inString);
18 explicit HashedString(StringRef inStringRef);
20 void Create(StringRef inStringRef);
21 uint64_t GetHash()
const;
23 operator bool()
const noexcept;
26 bool operator>(
const HashedString& other)
const {
27 return hash > other.hash;
30 bool operator<(
const HashedString& other)
const {
31 return hash < other.hash;
34 bool operator>=(
const HashedString& other)
const {
35 return hash >= other.hash;
38 bool operator<=(
const HashedString& other)
const {
39 return hash <= other.hash;
42 operator std::size_t()
const {
43 return static_cast<std::size_t
>(hash);
47 const String& ToString()
const;
50 Grindstone::HashValue hash;