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

Method init

gecode/int/int-set-1.hpp:235–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 forceinline
234 IntSetRanges::IntSetRanges(void) {}
235 forceinline
236 void
237 IntSetRanges::init(const IntSet& s) {
238 int n = s.ranges();
239 if (n > 0) {
240 i = &static_cast<IntSet::IntSetObject*>(s.object())->r[0]; e = i+n;
241 } else {
242 i = e = nullptr;
243 }
244 }
245 forceinline
246 IntSetRanges::IntSetRanges(const IntSet& s) { init(s); }
247

Callers

nothing calls this directly

Calls 2

rangesMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected