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

Method full

gecode/int/extensional/compact.hpp:378–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 template<class View, bool pos>
377 template<class Table>
378 forceinline bool
379 Compact<View,pos>::full(const Table& table) const {
380 unsigned long long int s = 1U;
381 for (Advisors<CTAdvisor> as(c); as(); ++as) {
382 s *= static_cast<unsigned long long int>(as.advisor().view().size());
383 if (s > table.bits())
384 return false;
385 }
386 return s == table.ones();
387 }
388
389 template<class View, bool pos>
390 PropCost

Callers 1

postMethod · 0.80

Calls 4

sizeMethod · 0.45
viewMethod · 0.45
bitsMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected