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

Method post

test/int/nvalues.cpp:120–126  ·  view source on GitHub ↗

Post constraint on \a xy

Source from the content-addressed store, hash-verified

118 }
119 /// Post constraint on \a xy
120 virtual void post(Gecode::Space& home, Gecode::IntVarArray& xy) {
121 int n = xy.size() - 1;
122 Gecode::IntVarArgs x(n);
123 for (int i=n; i--; )
124 x[i] = xy[i];
125 Gecode::nvalues(home, x, irt, xy[n]);
126 }
127 };
128
129 /// %Test number of values of Boolean variables equal to integer

Callers

nothing calls this directly

Calls 2

nvaluesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected