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

Method range

gecode/iter/ranges-list.hpp:184–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 forceinline RangeListIter::RangeList*
185 RangeListIter::range(int min, int max, RangeList*& f) {
186 RangeList* t;
187 // Take element from freelist if possible
188 if (f != nullptr) {
189 t = f; f = f->next;
190 } else {
191 t = new (*rlio) RangeList;
192 }
193 t->min = min; t->max = max;
194 return t;
195 }
196
197 forceinline RangeListIter::RangeList*
198 RangeListIter::range(int min, int max) {

Callers

nothing calls this directly

Calls 3

rangeFunction · 0.85
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected