The multithread-supported hash table, holding buckets of stateofkey. More...
#include <Common/StateOfKey.h>

Public Member Functions | |
| StateOfKeyHashTable (size_t bks, size_t cells=4) | |
| pre-init with several buckets More... | |
| void | insert (AbstractStateOfKeyPtr ask) |
| Insert a StateOfKey. More... | |
| void | insertSafe (AbstractStateOfKeyPtr ask) |
| Insert a StateOfKey, a thread safe version. More... | |
| AbstractStateOfKeyPtr | getByKey (keyType probeKey) |
| probe if we have something with the same key as ask More... | |
Public Attributes | |
| keyType | hash_mask |
| keyType | skip_bits |
| std::vector< StateOfKeyBucket > | buckets |
The multithread-supported hash table, holding buckets of stateofkey.
| StateOfKeyHashTable::StateOfKeyHashTable | ( | size_t | bks, |
| size_t | cells = 4 |
||
| ) |
pre-init with several buckets
| bks | the number of buckets |
| cells | How many cells are allowed in one bucket |
| AbstractStateOfKeyPtr StateOfKeyHashTable::getByKey | ( | keyType | probeKey | ) |
probe if we have something with the same key as ask
| probeKey | The key for probing |
| void StateOfKeyHashTable::insert | ( | AbstractStateOfKeyPtr | ask | ) |
Insert a StateOfKey.
| ask | The AbstractStateOfKey |
| void StateOfKeyHashTable::insertSafe | ( | AbstractStateOfKeyPtr | ask | ) |
Insert a StateOfKey, a thread safe version.
| ask | The AbstractStateOfKey |