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

Method post

test/set/dom.cpp:475–480  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

473 }
474 /// Post constraint on \a x
475 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
476 if (x.size() == 1)
477 Gecode::cardinality(home, x[0], 2, 3);
478 else
479 Gecode::cardinality(home, x, 2, 3);
480 }
481 };
482
483 DomRange _domrange_eq1(SRT_EQ,1);

Callers

nothing calls this directly

Calls 2

cardinalityFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected