MCPcopy Create free account
hub / github.com/Gecode/gecode / ManTaskViewIter

Method ManTaskViewIter

gecode/int/task/iter.hpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73 template<class OptTaskView, SortTaskOrder sto, bool inc>
74 forceinline
75 ManTaskViewIter<OptTaskView,sto,inc>
76 ::ManTaskViewIter(Region& r, const TaskViewArray<OptTaskView>& t) {
77 map = r.alloc<int>(t.size()); i=0;
78 for (int j=0; j<t.size(); j++)
79 if (t[j].mandatory())
80 map[i++]=j;
81 sort<OptTaskView,sto,!inc>(map,i,t);
82 i--;
83 }
84
85
86}}

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
mandatoryMethod · 0.45

Tested by

no test coverage detected