Generated on Sat Feb 7 2015 02:01:45 for Gecode by doxygen 1.8.9.1
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. More...
 

Protected Member Functions

 TaskViewIter (void)
 Default constructor (no initialization) More...
 

Protected Attributes

int * map
 Map for iteration order. More...
 
int i
 Current position. More...
 

Iteration control

bool operator() (void) const
 Test whether iterator is still at a task. More...
 
int left (void) const
 How many tasks are left to be iterated. More...
 
void operator++ (void)
 Move iterator to next task. More...
 

Task access

int task (void) const
 Return current task position. More...
 

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  )
inlineprotected

Default constructor (no initialization)

Definition at line 44 of file iter.hpp.

template<class TaskView, SortTaskOrder sto, bool inc>
Gecode::Int::TaskViewIter< TaskView, sto, inc >::TaskViewIter ( Region r,
const TaskViewArray< TaskView > &  t 
)
inline

Initialize iterator.

Definition at line 49 of file iter.hpp.

Member Function Documentation

template<class TaskView , SortTaskOrder sto, bool inc>
bool Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator() ( void  ) const
inline

Test whether iterator is still at a task.

Definition at line 56 of file iter.hpp.

template<class TaskView , SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::left ( void  ) const
inline

How many tasks are left to be iterated.

Definition at line 61 of file iter.hpp.

template<class TaskView , SortTaskOrder sto, bool inc>
void Gecode::Int::TaskViewIter< TaskView, sto, inc >::operator++ ( void  )
inline

Move iterator to next task.

Definition at line 66 of file iter.hpp.

template<class TaskView , SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::task ( void  ) const
inline

Return current task position.

Definition at line 72 of file iter.hpp.

Member Data Documentation

template<class TaskView, SortTaskOrder sto, bool inc>
int* Gecode::Int::TaskViewIter< TaskView, sto, inc >::map
protected

Map for iteration order.

Definition at line 312 of file task.hh.

template<class TaskView, SortTaskOrder sto, bool inc>
int Gecode::Int::TaskViewIter< TaskView, sto, inc >::i
protected

Current position.

Definition at line 314 of file task.hh.


The documentation for this class was generated from the following files: