Public Member Functions | Data Fields
bm::bv_statistics Struct Reference

Structure with statistical information about bitset's memory allocation details. More...

#include <bmfunc.h>

Inheritance diagram for bm::bv_statistics:
Inheritance graph

Public Member Functions

void add_bit_block ()
 cound bit block More...
void add_gap_block (unsigned capacity, unsigned length)
 count gap block More...
void reset ()
 Reset statisctics. More...

Data Fields

unsigned bit_blocks
 Number of bit blocks. More...
unsigned gap_blocks
 Number of GAP blocks. More...
size_t max_serialize_mem
 Estimated maximum of memory required for serialization. More...
size_t memory_used
 Memory used by bitvector including temp and service blocks. More...
gap_word_t gap_length [bm::set_total_blocks]
 Array of all GAP block lengths in the bvector. More...
gap_word_t gap_levels [bm::gap_levels]
 GAP lengths used by bvector. More...

Detailed Description

Structure with statistical information about bitset's memory allocation details.

Definition at line 54 of file bmfunc.h.

Member Function Documentation

◆ add_bit_block()

void bm::bv_statistics::add_bit_block ( )

cound bit block

Definition at line 71 of file bmfunc.h.

References bit_blocks, and bm::set_block_size.

Referenced by bm::bvector<>::calc_stat().

◆ add_gap_block()

void bm::bv_statistics::add_gap_block ( unsigned  capacity,
unsigned  length 

count gap block

Definition at line 80 of file bmfunc.h.

References gap_blocks, and bm::set_total_blocks.

Referenced by bm::bvector<>::calc_stat().

◆ reset()

void bm::bv_statistics::reset ( )

Reset statisctics.

Definition at line 90 of file bmfunc.h.

Referenced by bm::sparse_vector< unsigned, bm::bvector<> >::calc_stat(), and bm::bvector<>::calc_stat().

Field Documentation

◆ bit_blocks

unsigned bm::bv_statistics::bit_blocks

◆ gap_blocks

unsigned bm::bv_statistics::gap_blocks

◆ gap_length

gap_word_t bm::bv_statistics::gap_length[bm::set_total_blocks]

Array of all GAP block lengths in the bvector.

Definition at line 65 of file bmfunc.h.

Referenced by bm::bvector<>::calc_stat(), and bm::gap_free_elements().

◆ gap_levels

gap_word_t bm::bv_statistics::gap_levels[bm::gap_levels]

GAP lengths used by bvector.

Definition at line 67 of file bmfunc.h.

Referenced by bm::bvector<>::calc_stat().

◆ max_serialize_mem

size_t bm::bv_statistics::max_serialize_mem

◆ memory_used

size_t bm::bv_statistics::memory_used

The documentation for this struct was generated from the following file: