40 namespace Gecode {
namespace Int {
42 template<
class TaskView, SortTaskOrder sto,
bool inc>
46 template<
class TaskView, SortTaskOrder sto,
bool inc>
51 sort<TaskView,sto,!inc>(map,
t);
54 template<
class TaskView, SortTaskOrder sto,
bool inc>
59 template<
class TaskView, SortTaskOrder sto,
bool inc>
64 template<
class TaskView, SortTaskOrder sto,
bool inc>
70 template<
class TaskView, SortTaskOrder sto,
bool inc>
77 template<
class OptTaskView, SortTaskOrder sto,
bool inc>
81 map =
r.alloc<
int>(
t.size());
i=0;
82 for (
int j=
t.size(); j--; )
85 sort<OptTaskView,sto,!inc>(map,
i,
t);
ManTaskViewIter(Region &r, const TaskViewArray< OptTaskView > &t)
Initialize iterator with mandatory tasks.
void operator++(void)
Move iterator to next task.
TaskViewIter(void)
Default constructor (no initialization)
Gecode::IntArgs i(4, 1, 2, 3, 4)
int task(void) const
Return current task position.
unsigned int size(I &i)
Size of all ranges of range iterator i.
bool operator()(void) const
Test whether iterator is still at a task.
Gecode toplevel namespace
int left(void) const
How many tasks are left to be iterated.