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::TaskViewIter | ( | void | ) | [inline, protected] |
Gecode::Int::TaskViewIter::TaskViewIter | ( | Region & | r, |
const TaskViewArray< TaskView > & | t | ||
) | [inline] |
bool Gecode::Int::TaskViewIter::operator() | ( | void | ) | const [inline] |
int Gecode::Int::TaskViewIter::left | ( | void | ) | const [inline] |
void Gecode::Int::TaskViewIter::operator++ | ( | void | ) | [inline] |
int Gecode::Int::TaskViewIter::task | ( | void | ) | const [inline] |
int* Gecode::Int::TaskViewIter::map [protected] |
int Gecode::Int::TaskViewIter::i [protected] |