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

Method TinyBitSet

gecode/int/extensional/tiny-bit-set.hpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 */
44 template<unsigned int sz>
45 forceinline
46 TinyBitSet<sz>::TinyBitSet(Space&, unsigned int n) {
47 assert(n <= sz);
48 /// Set the active bits
49 for (unsigned int i=0U; i<n; i++)
50 _bits[i].init(true);
51 /// Clear unused suffix bits
52 for (unsigned int i=n; i<sz; i++)
53 _bits[i].init(false);
54 }
55
56 template<unsigned int sz>
57 template<unsigned int largersz>

Callers

nothing calls this directly

Calls 5

emptyFunction · 0.50
initMethod · 0.45
emptyMethod · 0.45
widthMethod · 0.45
wordsMethod · 0.45

Tested by

no test coverage detected