BitMagic-C++
Public Member Functions | Data Fields
bm::bv_arena_statistics Struct Reference

Structure with statistical information about memory allocation for arena based vectors. More...

#include <bmfunc.h>

Public Member Functions

void reset () BMNOEXCEPT
 Reset statisctics. More...
 
size_t get_alloc_size () const BMNOEXCEPT
 Get allocation size in bytes. More...
 

Data Fields

size_t bit_blocks_sz
 Total size of bit blocks. More...
 
size_t gap_blocks_sz
 Total size of gap blocks. More...
 
size_t ptr_sub_blocks_sz
 Total size of sub-blocks ptrs. More...
 
unsigned top_block_size
 size of top descriptor More...
 

Detailed Description

Structure with statistical information about memory allocation for arena based vectors.

Definition at line 118 of file bmfunc.h.

Member Function Documentation

◆ get_alloc_size()

size_t bm::bv_arena_statistics::get_alloc_size ( ) const
inline

Get allocation size in bytes.

Definition at line 132 of file bmfunc.h.

References bit_blocks_sz, gap_blocks_sz, ptr_sub_blocks_sz, and top_block_size.

◆ reset()

void bm::bv_arena_statistics::reset ( )
inline

Reset statisctics.

Definition at line 126 of file bmfunc.h.

References bit_blocks_sz, gap_blocks_sz, ptr_sub_blocks_sz, and top_block_size.

Field Documentation

◆ bit_blocks_sz

size_t bm::bv_arena_statistics::bit_blocks_sz

Total size of bit blocks.

Definition at line 120 of file bmfunc.h.

Referenced by get_alloc_size(), and reset().

◆ gap_blocks_sz

size_t bm::bv_arena_statistics::gap_blocks_sz

Total size of gap blocks.

Definition at line 121 of file bmfunc.h.

Referenced by get_alloc_size(), and reset().

◆ ptr_sub_blocks_sz

size_t bm::bv_arena_statistics::ptr_sub_blocks_sz

Total size of sub-blocks ptrs.

Definition at line 122 of file bmfunc.h.

Referenced by get_alloc_size(), and reset().

◆ top_block_size

unsigned bm::bv_arena_statistics::top_block_size

size of top descriptor

Definition at line 123 of file bmfunc.h.

Referenced by get_alloc_size(), and reset().


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