#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 60 of file GlobalHashSet.hpp.
|
inlineprotected |
Definition at line 160 of file GlobalHashSet.hpp.
|
inlineprotected |
Definition at line 154 of file GlobalHashSet.hpp.
|
inlinestatic |
Definition at line 167 of file GlobalHashSet.hpp.
|
inline |
Definition at line 177 of file GlobalHashSet.hpp.
|
inline |
Definition at line 267 of file GlobalHashSet.hpp.
|
inline |
Definition at line 220 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 245 of file GlobalHashSet.hpp.
|
inline |
Definition at line 185 of file GlobalHashSet.hpp.
|
inline |
Definition at line 275 of file GlobalHashSet.hpp.
|
inline |
Definition at line 259 of file GlobalHashSet.hpp.
|
protected |
Definition at line 147 of file GlobalHashSet.hpp.
|
protected |
Definition at line 148 of file GlobalHashSet.hpp.
|
protected |
Definition at line 150 of file GlobalHashSet.hpp.
|
protected |
|
protected |
Definition at line 152 of file GlobalHashSet.hpp.
|
protected |
Definition at line 146 of file GlobalHashSet.hpp.