Global unordered queue with local insert and iteration. More...
#include <GlobalBag.hpp>
Public Member Functions | |
GlobalBag () | |
GlobalBag (GlobalAddress< GlobalBag > self, size_t n) | |
~GlobalBag () | |
void | destroy () |
void | add (const T &o) |
void | clear () |
size_t | local_size () |
size_t | size () |
bool | empty () |
Static Public Member Functions | |
static GlobalAddress< GlobalBag > | create (size_t total_capacity) |
Global unordered queue with local insert and iteration.
Useful for situations where intermediate values may be produced from anywhere and iterated over later. We use this mostly for places like BFS's "frontier", where things to process next phase are stored in a bag so they can be processed without communicating.
Definition at line 12 of file GlobalBag.hpp.
|
inline |
Definition at line 18 of file GlobalBag.hpp.
|
inline |
Definition at line 19 of file GlobalBag.hpp.
|
inline |
Definition at line 21 of file GlobalBag.hpp.
|
inline |
Definition at line 39 of file GlobalBag.hpp.
|
inline |
Definition at line 45 of file GlobalBag.hpp.
|
inlinestatic |
Definition at line 23 of file GlobalBag.hpp.
|
inline |
Definition at line 33 of file GlobalBag.hpp.
|
inline |
Definition at line 60 of file GlobalBag.hpp.
|
inline |
Definition at line 53 of file GlobalBag.hpp.
|
inline |
Definition at line 55 of file GlobalBag.hpp.