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