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

Method copy

gecode/kernel/range-list.hpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213 template<class Iter>
214 forceinline void
215 RangeList::copy(Space& home, RangeList*& r, Iter& i) {
216 RangeList sentinel; sentinel.next(r);
217 RangeList* p = &sentinel;
218 while (i()) {
219 RangeList* n = new (home) RangeList(i.min(),i.max());
220 p->next(n); p=n; ++i;
221 }
222 p->next(nullptr);
223 r = sentinel.next();
224 }
225
226 template<class Iter>
227 forceinline void

Callers 3

updateMethod · 0.45
SpaceMethod · 0.45
updateMethod · 0.45

Calls 4

iFunction · 0.50
nextMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected