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

Function cbssize

gecode/int/distinct/cbs.hpp:214–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213 template<class View>
214 void cbssize(const ViewArray<View>& x, Propagator::InDecision in,
215 unsigned int& size, unsigned int& size_b) {
216 size = 0;
217 size_b = 0;
218 for (const auto& v : x) {
219 if (!v.assigned()) {
220 size += v.size();
221 if (in(v.id()))
222 size_b += v.size();
223 }
224 }
225 }
226
227}}}
228

Callers 3

domainsizesumMethod · 0.85
domainsizesumMethod · 0.85
domainsizesumMethod · 0.85

Calls 4

inFunction · 0.50
assignedMethod · 0.45
sizeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected