|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - type of elements contained in the worklistpublic interface Worklist<T>
Worklist used by Galois iterators. Worklists are not intended to be instantiated directly but rather by passing an ordering rule to the iterator.
Priority.Rule,
GaloisRuntime.foreach(Iterable, util.fn.Lambda2Void, galois.runtime.wl.Priority.Rule)| Method Summary | |
|---|---|
void |
add(T item,
ForeachContext<T> ctx)
Adds an element to this worklist. |
void |
addInitial(T item,
ForeachContext<T> ctx)
Adds an element to this worklist. |
void |
finishAddInitial()
Marks when no more elements will be added from the initial elements passed to an executor. |
boolean |
isEmpty()
Checks for emptiness. |
Worklist<T> |
newInstance()
|
T |
poll(ForeachContext<T> ctx)
Removes an element from this worklist. |
int |
size()
|
| Method Detail |
|---|
void addInitial(T item,
ForeachContext<T> ctx)
item - the item to addctx - an executor contextvoid finishAddInitial()
void add(T item,
ForeachContext<T> ctx)
item - the item to addctx - an executor contextT poll(ForeachContext<T> ctx)
ctx - an executor context
null if there are no more elements in this
worklistboolean isEmpty()
poll(ForeachContext) return
null.
int size()
Worklist<T> newInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||