|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the type of elements of the worklistpublic interface OrderableWorklist<T>
Worklists that can be used for ordered Galois iterators
| Method Summary | |
|---|---|
void |
add(T item,
ForeachContext<T> ctx)
Adds an element to this worklist. |
Comparator<T> |
getComparator()
|
boolean |
isEmpty()
Checks for emptiness. |
T |
peek()
|
T |
poll(ForeachContext<T> ctx)
Removes an element from this worklist. |
int |
size()
|
| Methods inherited from interface galois.runtime.wl.Worklist |
|---|
addInitial, finishAddInitial, newInstance |
| Method Detail |
|---|
void add(T item,
ForeachContext<T> ctx)
Worklist
add in interface Worklist<T>item - the item to addctx - an executor contextT poll(ForeachContext<T> ctx)
Worklist
poll in interface Worklist<T>ctx - an executor context
null if there are no more elements in this
worklistboolean isEmpty()
WorklistWorklist.poll(ForeachContext) return
null.
isEmpty in interface Worklist<T>int size()
size in interface Worklist<T>Comparator<T> getComparator()
T peek()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||