mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(hash): add hash templates
This commit is contained in:
parent
399e3f02d6
commit
ac1be572c4
7 changed files with 374 additions and 0 deletions
37
storm/hash/Hashkey.hpp
Normal file
37
storm/hash/Hashkey.hpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef STORM_HASH_HASHKEY_HPP
|
||||
#define STORM_HASH_HASHKEY_HPP
|
||||
|
||||
class HASHKEY_PTR {
|
||||
public:
|
||||
// Member variables
|
||||
void* m_key;
|
||||
|
||||
// Member functions
|
||||
bool operator==(const HASHKEY_PTR&);
|
||||
};
|
||||
|
||||
class HASHKEY_STR {
|
||||
public:
|
||||
// Member variables
|
||||
char* m_str;
|
||||
|
||||
// Member functions
|
||||
~HASHKEY_STR();
|
||||
HASHKEY_STR& operator=(const char*);
|
||||
bool operator==(const char*);
|
||||
};
|
||||
|
||||
class HASHKEY_STRI : public HASHKEY_STR {
|
||||
public:
|
||||
// Member functions
|
||||
HASHKEY_STRI& operator=(const char*);
|
||||
bool operator==(const char*);
|
||||
};
|
||||
|
||||
class HASHKEY_NONE {
|
||||
public:
|
||||
// Member functions
|
||||
bool operator==(const HASHKEY_NONE&);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue