Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Examples

bm::bvmini< N > Class Template Reference
[Small sets functionality]

Mini bitvector used in bvector template to keep block type flags. More...

#include <bmvmin.h>


Public Member Functions

 bvmini (int start_strategy=0)
 bvmini (const bvmini &mset)
unsigned test (bm::id_t n) const
 Checks if bit pos 1 or 0. Returns 0 if 0 and non zero otherwise.
void set (bm::id_t n, bool val=true)
unsigned mem_used () const
void swap (bvmini &mset)


Detailed Description

template<size_t N>
class bm::bvmini< N >

Mini bitvector used in bvector template to keep block type flags.

Template is used as a default template parameter MS for bvector Offers maximum performance comparing to miniset.

See also:
miniset

Definition at line 217 of file bmvmin.h.


Constructor & Destructor Documentation

template<size_t N>
bm::bvmini< N >::bvmini int  start_strategy = 0  )  [inline]
 

Definition at line 221 of file bmvmin.h.

template<size_t N>
bm::bvmini< N >::bvmini const bvmini< N > &  mset  )  [inline]
 

Definition at line 226 of file bmvmin.h.


Member Function Documentation

template<size_t N>
unsigned bm::bvmini< N >::mem_used  )  const [inline]
 

Definition at line 246 of file bmvmin.h.

template<size_t N>
void bm::bvmini< N >::set bm::id_t  n,
bool  val = true
[inline]
 

Definition at line 238 of file bmvmin.h.

template<size_t N>
void bm::bvmini< N >::swap bvmini< N > &  mset  )  [inline]
 

Definition at line 251 of file bmvmin.h.

References BM_MINISET_ARRSIZE.

template<size_t N>
unsigned bm::bvmini< N >::test bm::id_t  n  )  const [inline]
 

Checks if bit pos 1 or 0. Returns 0 if 0 and non zero otherwise.

Definition at line 233 of file bmvmin.h.


The documentation for this class was generated from the following file:
Generated on Sun Aug 5 14:12:40 2007 for BitMagic by  doxygen 1.4.1