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

Method post

test/set/int.cpp:344–349  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

342 }
343 /// Post constraint on \a x
344 virtual void post(Space& home, SetVarArray& x, IntVarArray& y) {
345 if (!swapped)
346 Gecode::rel(home, x[0], irt, y[0]);
347 else
348 Gecode::rel(home, y[0], irt, x[0]);
349 }
350 /// Post reified constraint on \a x for \a r
351 virtual void post(Space& home, SetVarArray& x, IntVarArray& y,
352 Reify r) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected