2020-11-15 13:20:10 -06:00
|
|
|
#ifndef STORM_HASH_HASHKEY_HPP
|
|
|
|
|
#define STORM_HASH_HASHKEY_HPP
|
|
|
|
|
|
|
|
|
|
class HASHKEY_PTR {
|
|
|
|
|
public:
|
|
|
|
|
// Member variables
|
|
|
|
|
void* m_key;
|
|
|
|
|
|
|
|
|
|
// Member functions
|
2022-12-28 17:08:59 -06:00
|
|
|
bool operator==(const HASHKEY_PTR& key);
|
2020-11-15 13:20:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class HASHKEY_STR {
|
|
|
|
|
public:
|
|
|
|
|
// Member variables
|
|
|
|
|
char* m_str;
|
|
|
|
|
|
|
|
|
|
// Member functions
|
|
|
|
|
~HASHKEY_STR();
|
2022-12-28 17:08:59 -06:00
|
|
|
HASHKEY_STR& operator=(const char* str);
|
|
|
|
|
bool operator==(const char* str);
|
2020-11-15 13:20:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class HASHKEY_STRI : public HASHKEY_STR {
|
|
|
|
|
public:
|
|
|
|
|
// Member functions
|
2022-12-28 17:08:59 -06:00
|
|
|
HASHKEY_STRI& operator=(const char* str);
|
|
|
|
|
bool operator==(const char* str);
|
2020-11-15 13:20:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class HASHKEY_NONE {
|
|
|
|
|
public:
|
|
|
|
|
// Member functions
|
2022-12-28 17:08:59 -06:00
|
|
|
bool operator==(const HASHKEY_NONE& key);
|
2020-11-15 13:20:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|