66 cout <<
"Bits count:" << bv.
count() << endl;
67 cout <<
"Bit blocks:" << st.
bit_blocks << endl;
68 cout <<
"GAP blocks:" << st.
gap_blocks << endl;
96 catch(std::exception& ex)
98 std::cerr << ex.what() << std::endl;
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
pre-processor un-defines to avoid global space pollution (internal)
Bitvector Bit-vector container with runtime compression of bits.
size_type count() const BMNOEXCEPT
population count (count of ON bits)
void optimize(bm::word_t *temp_block=0, optmode opt_mode=opt_compress, statistics *stat=0)
Optimize memory bitvector's memory allocation.
void set_new_blocks_strat(strategy strat)
Sets new blocks allocation strategy.
bool set_bit(size_type n, bool val=true)
Sets bit n.
void calc_stat(struct bm::bvector< Alloc >::statistics *st) const BMNOEXCEPT
Calculates bitvector statistics.
@ BM_GAP
GAP compression is ON.
static void print_statistics(const bm::bvector<> &bv)
static void fill_bvector(bm::bvector<> *bv1, bm::bvector<> *bv2)
size_t gap_blocks
Number of GAP blocks.
size_t bit_blocks
Number of bit blocks.
size_t max_serialize_mem
estimated maximum memory for serialization
size_t memory_used
memory usage for all blocks and service tables
Statistical information about bitset's memory allocation details.