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

Method init

test/set.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void CountableSet::init(const Gecode::IntSet& d0) {
56 d = d0;
57 cur = 0;
58 Gecode::IntSetRanges isr(d);
59 lubmax =
60 static_cast<unsigned int>(pow(static_cast<double>(2.0),
61 static_cast<int>(Gecode::Iter::Ranges::size(isr))));
62 }
63
64 int CountableSet::val(void) const {
65 return cur;

Callers 13

CpltAssignmentMethod · 0.45
nextMethod · 0.45
SetAssignmentMethod · 0.45
nextMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
solutionMethod · 0.45
LoadBinAssignmentMethod · 0.45

Calls 2

powFunction · 0.50
sizeFunction · 0.50

Tested by

no test coverage detected