
Allows to iterate over task views according to a specified order. More...
#include <task.hh>
Public Member Functions | |
| TaskViewIter (Region &r, const TaskViewArray< TaskView > &t) | |
| Initialize iterator. | |
Protected Member Functions | |
| TaskViewIter (void) | |
| Default constructor (no initialization) | |
Protected Attributes | |
| int * | map |
| Map for iteration order. | |
| int | i |
| Current position. | |
Iteration control | |
| bool | operator() (void) const |
| Test whether iterator is still at a task. | |
| int | left (void) const |
| How many tasks are left to be iterated. | |
| void | operator++ (void) |
| Move iterator to next task. | |
Task access | |
| int | task (void) const |
| Return current task position. | |
Allows to iterate over task views according to a specified order.
| Gecode::Int::TaskViewIter< TaskView, sto, inc >::TaskViewIter | ( | void | ) | [inline, protected] |
| Gecode::Int::TaskViewIter< TaskView, sto, inc >::TaskViewIter | ( | Region & | r, |
| const TaskViewArray< TaskView > & | t | ||
| ) | [inline] |
| bool Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator() | ( | void | ) | const [inline] |
| int Gecode::Int::TaskViewIter< TaskView, sto, inc >::left | ( | void | ) | const [inline] |
| void Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator++ | ( | void | ) | [inline] |
| int Gecode::Int::TaskViewIter< TaskView, sto, inc >::task | ( | void | ) | const [inline] |
int* Gecode::Int::TaskViewIter< TaskView, sto, inc >::map [protected] |
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::i [protected] |