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

Method post

test/int/dom.cpp:63–68  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

61 }
62 /// Post constraint on \a x
63 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
64 if (x.size() == 1)
65 Gecode::dom(home, x[0], -2);
66 else
67 Gecode::dom(home, x, -2);
68 }
69 /// Post reified constraint on \a x for \a r
70 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x,
71 Gecode::Reify r) {

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