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

Function element

gecode/int/element.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode {
37
38 void
39 element(Home home, IntSharedArray c, IntVar x0, IntVar x1,
40 IntPropLevel) {
41 using namespace Int;
42 if (c.size() == 0)
43 throw TooFewArguments("Int::element");
44 GECODE_POST;
45 for (int i=0; i<c.size(); i++)
46 Limits::check(c[i],"Int::element");
47 GECODE_ES_FAIL((Element::post_int<IntView,IntView>(home,c,x0,x1)));
48 }
49
50 void
51 element(Home home, IntSharedArray c, IntVar x0, int offset, IntVar x1,

Callers 2

circuitFunction · 0.70
pathFunction · 0.70

Calls 5

pairWithOffsetsFunction · 0.85
pairFunction · 0.70
checkFunction · 0.50
postFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected