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

Method post

test/int/nvalues.cpp:161–167  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

159 }
160 /// Post constraint on \a x
161 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
162 using namespace Gecode;
163 BoolVarArgs y(x.size());
164 for (int i=x.size(); i--; )
165 y[i] = channel(home, x[i]);
166 nvalues(home, y, irt, m);
167 }
168 };
169
170 /// %Test number of values of Boolean variables equal to integer variable

Callers

nothing calls this directly

Calls 3

nvaluesFunction · 0.85
channelFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected