#include <GlobalHashSet.hpp>
Classes | |
struct | Cell |
struct | Entry |
struct | Proxy |
struct | ResultEntry |
Public Member Functions | |
void | destroy () |
bool | lookup (K key) |
void | insert (K key) |
template<typename F > | |
void | insert_async (K key, F sync) |
Inserts the key if not already in the set. More... | |
void | sync_all_cores () |
template<GlobalCompletionEvent * GCE = &impl::local_gce, typename F = decltype(nullptr)> | |
void | forall_keys (F visit) |
size_t | size () |
Static Public Member Functions | |
static GlobalAddress < GlobalHashSet > | create (size_t total_capacity) |
Protected Member Functions | |
uint64_t | computeIndex (K key) |
GlobalHashSet (GlobalAddress< GlobalHashSet > self, GlobalAddress< Cell > base, size_t capacity) | |
Protected Attributes | |
struct Grappa::GlobalHashSet::Cell | GRAPPA_BLOCK_ALIGNED |
GlobalAddress< GlobalHashSet > | self |
GlobalAddress< Cell > | base |
size_t | capacity |
size_t | count |
FlatCombiner< Proxy > | proxy |
Definition at line 49 of file GlobalHashSet.hpp.
|
inlineprotected |
Definition at line 149 of file GlobalHashSet.hpp.
|
inlineprotected |
Definition at line 143 of file GlobalHashSet.hpp.
|
inlinestatic |
Definition at line 156 of file GlobalHashSet.hpp.
|
inline |
Definition at line 166 of file GlobalHashSet.hpp.
|
inline |
Definition at line 256 of file GlobalHashSet.hpp.
|
inline |
Definition at line 209 of file GlobalHashSet.hpp.
|
inline |
Inserts the key if not already in the set.
asynchronous operation
TODO: detect if async's were used without calling 'sync'.
Definition at line 234 of file GlobalHashSet.hpp.
|
inline |
Definition at line 174 of file GlobalHashSet.hpp.
|
inline |
Definition at line 264 of file GlobalHashSet.hpp.
|
inline |
Definition at line 248 of file GlobalHashSet.hpp.
|
protected |
Definition at line 136 of file GlobalHashSet.hpp.
|
protected |
Definition at line 137 of file GlobalHashSet.hpp.
|
protected |
Definition at line 139 of file GlobalHashSet.hpp.
|
protected |
|
protected |
Definition at line 141 of file GlobalHashSet.hpp.
|
protected |
Definition at line 135 of file GlobalHashSet.hpp.