Galois
|
Thread-safe ordered set. More...
#include <PriorityQueue.h>
Public Types | |
typedef Set | container_type |
typedef container_type::value_type | value_type |
typedef container_type::reference | reference |
typedef container_type::const_reference | const_reference |
typedef container_type::pointer | pointer |
typedef container_type::size_type | size_type |
typedef container_type::const_iterator | iterator |
typedef container_type::const_iterator | const_iterator |
typedef container_type::const_reverse_iterator | reverse_iterator |
typedef container_type::const_reverse_iterator | const_reverse_iterator |
typedef galois::substrate::SimpleLock | Lock_ty |
template<typename _T , typename _Cmp = std::less<_T>, typename _Alloc = galois::FixedSizeAllocator<_T>> | |
using | retype = ThreadSafeOrderedSet< _T, _Cmp, _Alloc > |
Public Member Functions | |
ThreadSafeOrderedSet (const Cmp &cmp=Cmp(), const Alloc &alloc=Alloc()) | |
template<typename Iter > | |
ThreadSafeOrderedSet (Iter b, Iter e, const Cmp &cmp=Cmp(), const Alloc &alloc=Alloc()) | |
bool | empty () const |
size_type | size () const |
value_type | top () const |
bool | find (const value_type &x) const |
void | push_back (const value_type &x) |
void | insert (const value_type &x) |
bool | push (const value_type &x) |
value_type | pop () |
bool | remove (const value_type &x) |
void | clear () |
const_iterator | begin () const |
const_iterator | end () const |
Thread-safe ordered set.
Faster than STL heap operations (about 10%-15% faster on serially) and can use scalable allocation, e.g., FixedSizeAllocator.
typedef container_type::const_iterator galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::const_iterator |
typedef container_type::const_reference galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::const_reference |
typedef container_type::const_reverse_iterator galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::const_reverse_iterator |
typedef Set galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::container_type |
typedef container_type::const_iterator galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::iterator |
typedef galois::substrate::SimpleLock galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::Lock_ty |
typedef container_type::pointer galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::pointer |
typedef container_type::reference galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::reference |
using galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::retype = ThreadSafeOrderedSet<_T, _Cmp, _Alloc> |
typedef container_type::const_reverse_iterator galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::reverse_iterator |
typedef container_type::size_type galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::size_type |
typedef container_type::value_type galois::ThreadSafeOrderedSet< T, Cmp, Alloc >::value_type |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |