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

Method post

test/set/element.cpp:227–233  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

225 }
226 /// Post constraint on \a x
227 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
228 SetVarArgs xs(x.size()-2);
229 for (int i=x.size()-2; i--;)
230 xs[i]=x[i];
231 Gecode::element(home, SOT_INTER, xs, x[x.size()-2], x[x.size()-1],
232 ds_12);
233 }
234 };
235 ElementInterIn _elementinterin("Element::InterIn");
236

Callers

nothing calls this directly

Calls 2

elementFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected