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

Method post

test/int/nvalues.cpp:199–206  ·  view source on GitHub ↗

Post constraint on \a xy

Source from the content-addressed store, hash-verified

197 }
198 /// Post constraint on \a xy
199 virtual void post(Gecode::Space& home, Gecode::IntVarArray& xy) {
200 using namespace Gecode;
201 int n = xy.size() - 1;
202 BoolVarArgs x(n);
203 for (int i=n; i--; )
204 x[i] = channel(home, xy[i]);
205 nvalues(home, x, irt, xy[n]);
206 }
207 };
208
209 /// Help class to create and register tests

Callers

nothing calls this directly

Calls 3

nvaluesFunction · 0.85
channelFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected