The multithread-supported bucket of StateOfKey. More...
#include <Common/StateOfKey.h>

Public Types | |
| typedef StateOfKeyBucket_Iterator | iterator |
Public Member Functions | |
| void | setCellCount (size_t cnt) |
| set how many cells are allowed in one bucket More... | |
| void | lock () |
| lock this bucket | |
| void | unlock () |
| unlock this bucket | |
| void | insert (AbstractStateOfKeyPtr ask) |
| Insert a StateOfKey. More... | |
| AbstractStateOfKeyPtr | getByKey (keyType probeKey) |
| probe if we have something with the same key as ask More... | |
| iterator | begin () |
| iterator | end () |
Public Attributes | |
| size_t | count = 0 |
| std::vector< AbstractStateOfKeyPtr > | cells |
| StateOfKeyBucketPtr | next = nullptr |
The multithread-supported bucket of StateOfKey.
| AbstractStateOfKeyPtr StateOfKeyBucket::getByKey | ( | keyType | probeKey | ) |
probe if we have something with the same key as ask
| probeKey | The key for probing |
| void StateOfKeyBucket::insert | ( | AbstractStateOfKeyPtr | ask | ) |
Insert a StateOfKey.
| ask | The AbstractStateOfKey |
|
inline |
set how many cells are allowed in one bucket
| cnt |