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

Function overload

gecode/int/unary/overload.hpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 // Overload checking for mandatory tasks
37 template<class ManTask>
38 ExecStatus
39 overload(TaskArray<ManTask>& t) {
40 TaskViewArray<typename TaskTraits<ManTask>::TaskViewFwd> f(t);
41 sort<typename TaskTraits<ManTask>::TaskViewFwd,STO_LCT,true>(f);
42
43 Region r;
44 OmegaTree<typename TaskTraits<ManTask>::TaskViewFwd> o(r,f);
45
46 for (int i=0; i<f.size(); i++) {
47 o.insert(i);
48 if (o.ect() > f[i].lct())
49 return ES_FAILED;
50 }
51 return ES_OK;
52 }
53
54 // Overload checking for optional tasks
55 template<class OptTask, class PL>

Callers 1

propagateMethod · 0.70

Calls 13

linsertMethod · 0.80
oinsertMethod · 0.80
lectMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45
ectMethod · 0.45
lctMethod · 0.45
optionalMethod · 0.45
mandatoryMethod · 0.45
lemptyMethod · 0.45
responsibleMethod · 0.45
excludedMethod · 0.45

Tested by

no test coverage detected