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

Method post

test/set/element.cpp:90–95  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

88 }
89 /// Post constraint on \a x
90 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
91 SetVarArgs xs(x.size()-2);
92 for (int i=x.size()-2; i--;)
93 xs[i]=x[i];
94 Gecode::element(home, SOT_UNION, xs, x[x.size()-2], x[x.size()-1]);
95 }
96 };
97 ElementUnion _elementunion("Element::Union");
98

Callers

nothing calls this directly

Calls 2

elementFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected