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

Method post

test/set/element.cpp:183–188  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

181 }
182 /// Post constraint on \a x
183 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
184 SetVarArgs xs(x.size()-2);
185 for (int i=x.size()-2; i--;)
186 xs[i]=x[i];
187 Gecode::element(home, SOT_INTER, xs, x[x.size()-2], x[x.size()-1]);
188 }
189 };
190 ElementInter _elementinter("Element::Inter");
191

Callers

nothing calls this directly

Calls 2

elementFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected