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

Method post

test/set/dom.cpp:255–260  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

253 }
254 /// Post constraint on \a x
255 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
256 if (x.size() == 1)
257 Gecode::dom(home, x[0], srt, -3, -1);
258 else
259 Gecode::dom(home, x, srt, -3, -1);
260 }
261 /// Post reified constraint on \a x for \a b
262 virtual void post(Space& home, SetVarArray& x, IntVarArray&, Reify r) {
263 assert(x.size() == 1);

Callers

nothing calls this directly

Calls 5

domFunction · 0.50
relFunction · 0.50
sizeMethod · 0.45
modeMethod · 0.45
varMethod · 0.45

Tested by

no test coverage detected