20 #ifndef GALOIS_WORKLIST_ORDEREDLIST_H
21 #define GALOIS_WORKLIST_ORDEREDLIST_H
23 #include "galois/config.h"
29 template <
class Compare = std::less<
int>,
typename T =
int,
30 bool concurrent = true>
42 template <
typename Tnew>
52 std::deque<T>& list = map[val];
57 template <
typename Iter>
58 void push(Iter b, Iter e) {
61 std::deque<T>& list = map[*b];
68 template <
typename RangeTy>
71 push(range.begin(), range.end());
80 auto ii = map.
begin();
81 std::deque<T>& list = ii->second;
T value_type
Definition: OrderedList.h:48
Definition: OrderedList.h:31
void push(Iter b, Iter e)
Definition: OrderedList.h:58
Galois version of boost::optional.
Definition: optional.h:34
static unsigned getTID()
Definition: ThreadPool.h:204
Simple map data structure, based off a single array.
Definition: FlatMap.h:36
#define GALOIS_WLCOMPILECHECK(name)
Definition: WLCompileCheck.h:26
void push(value_type val)
Definition: OrderedList.h:50
iterator erase(const_iterator __position)
Definition: FlatMap.h:262
PaddedLock is a spinlock.
Definition: PaddedLock.h:32
void push_initial(RangeTy range)
Definition: OrderedList.h:69
galois::optional< value_type > pop()
Definition: OrderedList.h:74
bool empty() const
Definition: FlatMap.h:180
iterator begin()
Definition: FlatMap.h:163