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

Method post

test/set/element.cpp:304–309  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

302 }
303 /// Post constraint on \a x
304 virtual void post(Space& home, SetVarArray& x, IntVarArray& y) {
305 SetVarArgs xs(x.size()-1);
306 for (int i=x.size()-1; i--;)
307 xs[i]=x[i];
308 Gecode::element(home, xs, y[0], x[x.size()-1]);
309 }
310 };
311 ElementSet _elementset("Element::Set");
312

Callers

nothing calls this directly

Calls 2

elementFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected