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

Method post

test/int/count.cpp:218–223  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

216 }
217 /// Post constraint on \a x
218 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
219 Gecode::IntVarArgs y(4);
220 for (int i=0; i<4; i++)
221 y[i]=x[i];
222 Gecode::count(home, y, ints, irt, x[4]);
223 }
224 };
225
226 /// %Test number of equal integers equal to integer variable with sharing

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected