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

Method minus

gecode/int/bin-packing/propagate.hpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 SizeSetMinusOne::SizeSetMinusOne(Region& region, int n_max)
117 : SizeSet(region,n_max), p(-1) {}
118 forceinline void
119 SizeSetMinusOne::minus(int s0) {
120 // This rests on the fact that items are removed in order
121 do
122 p++;
123 while (s[p] > s0);
124 assert(p < n);
125 }
126 forceinline int
127 SizeSetMinusOne::card(void) const {
128 assert(p >= 0);

Callers 1

propagateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected