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
17
storm/hash/TSHashObject.hpp
Normal file
17
storm/hash/TSHashObject.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef STORM_HASH_TS_HASH_OBJECT_HPP
|
||||
#define STORM_HASH_TS_HASH_OBJECT_HPP
|
||||
|
||||
#include "storm/List.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
template <class T, class TKey>
|
||||
class TSHashObject {
|
||||
public:
|
||||
// Member variables
|
||||
uint32_t m_hashval;
|
||||
TSLink<T> m_linktoslot;
|
||||
TSLink<T> m_linktofull;
|
||||
TKey m_key;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue