NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
bm::bv_statistics Struct Reference

Search Toolkit Book for bm::bv_statistics

Structure with statistical information about memory allocation footprint, serialization projection, number of vectors. More...

#include <util/bitset/bmfunc.h>

+ Inheritance diagram for bm::bv_statistics:
+ Collaboration diagram for bm::bv_statistics:

Public Member Functions

 bv_statistics () noexcept
 
void add_bit_block () noexcept
 cound bit block More...
 
void add_gap_block (unsigned capacity, unsigned length, unsigned level) noexcept
 count gap block More...
 
void reset () noexcept
 Reset statisctics. More...
 
void add (const bv_statistics &st) noexcept
 Sum data from another sttructure. More...
 

Public Attributes

size_t bit_blocks
 Number of bit blocks. More...
 
size_t gap_blocks
 Number of GAP blocks. More...
 
size_t ptr_sub_blocks
 Number of sub-blocks. More...
 
size_t bv_count
 Number of bit-vectors. More...
 
size_t max_serialize_mem
 estimated maximum memory for serialization More...
 
size_t memory_used
 memory usage for all blocks and service tables More...
 
size_t gap_cap_overhead
 gap memory overhead between length and capacity More...
 
gap_word_t gap_levels [bm::gap_levels]
 GAP block lengths in the bvect. More...
 
unsigned long long gaps_by_level [bm::gap_levels]
 number of GAP blocks at each level More...
 

Detailed Description

Structure with statistical information about memory allocation footprint, serialization projection, number of vectors.

Definition at line 55 of file bmfunc.h.

Constructor & Destructor Documentation

◆ bv_statistics()

bm::bv_statistics::bv_statistics ( )
inlinenoexcept

Definition at line 67 of file bmfunc.h.

References reset().

Member Function Documentation

◆ add()

void bm::bv_statistics::add ( const bv_statistics st)
inlinenoexcept

◆ add_bit_block()

void bm::bv_statistics::add_bit_block ( )
inlinenoexcept

cound bit block

Definition at line 70 of file bmfunc.h.

References bit_blocks, max_serialize_mem, memory_used, and bm::set_block_size.

Referenced by bm::blocks_manager< Alloc >::optimize_block().

◆ add_gap_block()

void bm::bv_statistics::add_gap_block ( unsigned  capacity,
unsigned  length,
unsigned  level 
)
inlinenoexcept

◆ reset()

void bm::bv_statistics::reset ( )
inlinenoexcept

Member Data Documentation

◆ bit_blocks

size_t bm::bv_statistics::bit_blocks

◆ bv_count

size_t bm::bv_statistics::bv_count

Number of bit-vectors.

Definition at line 60 of file bmfunc.h.

Referenced by add(), and reset().

◆ gap_blocks

size_t bm::bv_statistics::gap_blocks

◆ gap_cap_overhead

size_t bm::bv_statistics::gap_cap_overhead

gap memory overhead between length and capacity

Definition at line 63 of file bmfunc.h.

Referenced by add(), add_gap_block(), and reset().

◆ gap_levels

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

GAP block lengths in the bvect.

Definition at line 64 of file bmfunc.h.

Referenced by bm::bvector< Alloc >::optimize().

◆ gaps_by_level

unsigned long long bm::bv_statistics::gaps_by_level[bm::gap_levels]

number of GAP blocks at each level

Definition at line 65 of file bmfunc.h.

Referenced by add_gap_block(), OptimizeTest(), and reset().

◆ max_serialize_mem

size_t bm::bv_statistics::max_serialize_mem

◆ memory_used

size_t bm::bv_statistics::memory_used

◆ ptr_sub_blocks

size_t bm::bv_statistics::ptr_sub_blocks

The documentation for this struct was generated from the following file:
Modified on Mon Dec 11 02:36:33 2023 by modify_doxy.py rev. 669887