bm::bv_statistics Struct Reference
[The Main bvector<> Group]

Search Toolkit Book for bm::bv_statistics

#include <bmfunc.h>

Inheritance diagram for bm::bv_statistics:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

Definition at line 48 of file bmfunc.h.

Public Member Functions

void add_bit_block ()
 cound bit block
void add_gap_block (unsigned capacity, unsigned length)
 count gap block

Public Attributes

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


Member Function Documentation

void bm::bv_statistics::add_bit_block  )  [inline]
 

cound bit block

Definition at line 66 of file bmfunc.h.

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

Referenced by bm::blocks_manager< Alloc, MS >::block_opt_func::operator()().

void bm::bv_statistics::add_gap_block unsigned  capacity,
unsigned  length
[inline]
 

count gap block

Definition at line 75 of file bmfunc.h.

References gap_blocks, max_serialize_mem, and memory_used.

Referenced by bm::blocks_manager< Alloc, MS >::block_opt_func::operator()().


Member Data Documentation

unsigned bm::bv_statistics::bit_blocks
 

Number of bit blocks.

Definition at line 51 of file bmfunc.h.

Referenced by add_bit_block(), and bm::bvector< Alloc, MS >::optimize().

unsigned bm::bv_statistics::gap_blocks
 

Number of GAP blocks.

Definition at line 53 of file bmfunc.h.

Referenced by add_gap_block(), and bm::bvector< Alloc, MS >::optimize().

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

Array of all GAP block lengths in the bvector.

Definition at line 59 of file bmfunc.h.

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

GAP lengths used by bvector.

Definition at line 61 of file bmfunc.h.

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

unsigned bm::bv_statistics::max_serialize_mem
 

Estimated maximum of memory required for serialization.

Definition at line 55 of file bmfunc.h.

Referenced by add_bit_block(), add_gap_block(), bm::blocks_manager< Alloc, MS >::block_opt_func::on_empty_top(), bm::blocks_manager< Alloc, MS >::block_opt_func::operator()(), and bm::bvector< Alloc, MS >::optimize().

unsigned bm::bv_statistics::memory_used
 

Memory used by bitvector including temp and service blocks.

Definition at line 57 of file bmfunc.h.

Referenced by add_bit_block(), add_gap_block(), and bm::bvector< Alloc, MS >::optimize().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 9 08:16:16 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:18 2009 by modify_doxy.py rev. 173732