BitMagic-C++
Public Member Functions | Data Fields
bm::bvector< Alloc >::blocks_count Struct Reference

structure for bit counts per block (prefix sum) Structure is used to accelerate bit range scans More...

#include <bm.h>

Public Member Functions

 blocks_count ()
 
 blocks_count (const blocks_count &bc) BMNOEXEPT
 
void copy_from (const blocks_count &bc) BMNOEXEPT
 copy block count array More...
 
unsigned count (unsigned nb) const
 return bit-count for specified block More...
 

Data Fields

unsigned BM_VECT_ALIGN cnt [bm::set_total_blocksBM_VECT_ALIGN_ATTR
 

Detailed Description

template<class Alloc>
struct bm::bvector< Alloc >::blocks_count

structure for bit counts per block (prefix sum) Structure is used to accelerate bit range scans

Examples:
sample11.cpp.

Definition at line 1078 of file bm.h.

Constructor & Destructor Documentation

◆ blocks_count() [1/2]

template<class Alloc>
bm::bvector< Alloc >::blocks_count::blocks_count ( )
inline

Definition at line 1082 of file bm.h.

◆ blocks_count() [2/2]

template<class Alloc>
bm::bvector< Alloc >::blocks_count::blocks_count ( const blocks_count bc)
inline

Definition at line 1083 of file bm.h.

Member Function Documentation

◆ copy_from()

template<class Alloc>
void bm::bvector< Alloc >::blocks_count::copy_from ( const blocks_count bc)
inline

copy block count array

Definition at line 1088 of file bm.h.

◆ count()

template<class Alloc>
unsigned bm::bvector< Alloc >::blocks_count::count ( unsigned  nb) const
inline

return bit-count for specified block

Definition at line 1093 of file bm.h.

Field Documentation

◆ BM_VECT_ALIGN_ATTR

template<class Alloc>
unsigned BM_VECT_ALIGN cnt [bm::set_total_blocks] bm::bvector< Alloc >::blocks_count::BM_VECT_ALIGN_ATTR

Definition at line 1080 of file bm.h.


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