| 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 | }} |