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

Method CountableSet

test/set.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42namespace Test { namespace Set {
43
44 CountableSet::CountableSet(const Gecode::IntSet& d0) : d(d0), cur(0) {
45 Gecode::IntSetRanges isr(d);
46 lubmax =
47 static_cast<unsigned int>(pow(static_cast<double>(2.0),
48 static_cast<int>(Gecode::Iter::Ranges::size(isr))));
49 }
50
51 void CountableSet::operator++(void) {
52 cur++;

Callers

nothing calls this directly

Calls 2

powFunction · 0.50
sizeFunction · 0.50

Tested by

no test coverage detected