feat(hash): add hash templates

This commit is contained in:
fallenoak 2020-11-15 13:20:10 -06:00
parent 399e3f02d6
commit ac1be572c4
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
7 changed files with 374 additions and 0 deletions

37
storm/hash/Hashkey.hpp Normal file
View 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