MCPcopy Create free account
hub / github.com/Gecode/gecode / operator ++

Method operator ++

gecode/iter/ranges-scale.hpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150 template<class Val, class UnsVal, class I>
151 forceinline void
152 ScaleUp<Val,UnsVal,I>::operator ++(void) {
153 if (a == 1) {
154 ++i;
155 } else {
156 cur += a;
157 if (cur > end) {
158 ++i;
159 if (i()) {
160 cur = a * i.min();
161 end = a * i.max();
162 }
163 }
164 }
165 }
166 template<class Val, class UnsVal, class I>
167 forceinline bool
168 ScaleUp<Val,UnsVal,I>::operator ()(void) const {

Callers

nothing calls this directly

Calls 3

iFunction · 0.70
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected