Gecode::Int::TaskViewIter< TaskView, sto, inc > Class Template Reference
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. |
Detailed Description
template<class TaskView, SortTaskOrder sto, bool inc>
class Gecode::Int::TaskViewIter< TaskView, sto, inc >
Allows to iterate over task views according to a specified order.
Definition at line 309 of file task.hh.
Constructor & Destructor Documentation
template<class TaskView , SortTaskOrder sto, bool inc>
Gecode::Int::TaskViewIter< TaskView, sto, inc >::TaskViewIter | ( | void | ) | [inline, protected] |
template<class TaskView, SortTaskOrder sto, bool inc>
Gecode::Int::TaskViewIter< TaskView, sto, inc >::TaskViewIter | ( | Region & | r, | |
const TaskViewArray< TaskView > & | t | |||
) | [inline] |
Member Function Documentation
template<class TaskView , SortTaskOrder sto, bool inc>
bool Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator() | ( | void | ) | const [inline] |
template<class TaskView , SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::left | ( | void | ) | const [inline] |
template<class TaskView , SortTaskOrder sto, bool inc>
void Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator++ | ( | void | ) | [inline] |
template<class TaskView , SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::task | ( | void | ) | const [inline] |
Member Data Documentation
template<class TaskView, SortTaskOrder sto, bool inc>
int* Gecode::Int::TaskViewIter< TaskView, sto, inc >::map [protected] |
template<class TaskView, SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::i [protected] |
The documentation for this class was generated from the following files:
- gecode/int/task.hh (Revision: 12176)
- gecode/int/task/iter.hpp (Revision: 12022)