Galois
|
Unordered collection of elements. More...
#include <Bag.h>
Classes | |
class | Iterator |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef T & | reference |
typedef Iterator< T > | iterator |
typedef Iterator< const T > | const_iterator |
typedef iterator | local_iterator |
Public Member Functions | |
InsertBag () | |
InsertBag (InsertBag &&o) | |
InsertBag & | operator= (InsertBag &&o) |
InsertBag (const InsertBag &)=delete | |
InsertBag & | operator= (const InsertBag &)=delete |
~InsertBag () | |
void | clear () |
void | clear_serial () |
void | swap (InsertBag &o) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
local_iterator | local_begin () |
local_iterator | local_end () |
bool | empty () const |
template<typename... Args> | |
reference | emplace (Args &&...args) |
Thread safe bag insertion. More... | |
template<typename... Args> | |
reference | emplace_back (Args &&...args) |
void | pop () |
Pop the last element pushed by this thread. More... | |
template<typename ItemTy > | |
reference | push (ItemTy &&val) |
Thread safe bag insertion. More... | |
template<typename ItemTy > | |
reference | push_back (ItemTy &&val) |
Thread safe bag insertion. More... | |
Unordered collection of elements.
This data structure supports scalable concurrent pushes but reading the bag can only be done serially.
typedef Iterator<const T> galois::InsertBag< T, BlockSize >::const_iterator |
typedef const T* galois::InsertBag< T, BlockSize >::const_pointer |
typedef const T& galois::InsertBag< T, BlockSize >::const_reference |
typedef Iterator<T> galois::InsertBag< T, BlockSize >::iterator |
typedef iterator galois::InsertBag< T, BlockSize >::local_iterator |
typedef T* galois::InsertBag< T, BlockSize >::pointer |
typedef T& galois::InsertBag< T, BlockSize >::reference |
typedef T galois::InsertBag< T, BlockSize >::value_type |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Thread safe bag insertion.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
Pop the last element pushed by this thread.
The number of consecutive pops supported without intevening pushes is implementation dependent.
|
inline |
Thread safe bag insertion.
|
inline |
Thread safe bag insertion.
|
inline |