dlvhex
2.5.0
|
Mini bitvector used in bvector template to keep block type flags. More...
#include <vs10/bm/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) |
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) |
Private Attributes | |
bm::word_t | m_buf [BM_MINISET_ARRSIZE(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.
bm::bvmini< N >::bvmini | ( | int | start_strategy = 0 | ) | [inline] |
Definition at line 225 of file bmvmin.h.
References bm::bvmini< N >::m_buf.
bm::bvmini< N >::bvmini | ( | const bvmini< N > & | mset | ) | [inline] |
Definition at line 230 of file bmvmin.h.
References bm::bvmini< N >::m_buf.
bm::bvmini< N >::bvmini | ( | int | start_strategy = 0 | ) | [inline] |
Definition at line 225 of file bmvmin.h.
References bm::bvmini< N >::m_buf.
bm::bvmini< N >::bvmini | ( | const bvmini< N > & | mset | ) | [inline] |
Definition at line 230 of file bmvmin.h.
References bm::bvmini< N >::m_buf.
unsigned bm::bvmini< N >::mem_used | ( | ) | const [inline] |
unsigned bm::bvmini< N >::mem_used | ( | ) | const [inline] |
void bm::bvmini< N >::set | ( | bm::id_t | n, |
bool | val = true |
||
) | [inline] |
Definition at line 242 of file bmvmin.h.
References bm::bvmini< N >::m_buf, bm::set_word_mask, and bm::set_word_shift.
void bm::bvmini< N >::set | ( | bm::id_t | n, |
bool | val = true |
||
) | [inline] |
Definition at line 242 of file bmvmin.h.
References bm::bvmini< N >::m_buf, bm::set_word_mask, and bm::set_word_shift.
void bm::bvmini< N >::swap | ( | bvmini< N > & | mset | ) | [inline] |
Definition at line 255 of file bmvmin.h.
References BM_MINISET_ARRSIZE, and bm::bvmini< N >::m_buf.
void bm::bvmini< N >::swap | ( | bvmini< N > & | mset | ) | [inline] |
Definition at line 255 of file bmvmin.h.
References BM_MINISET_ARRSIZE, and bm::bvmini< N >::m_buf.
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 237 of file bmvmin.h.
References bm::bvmini< N >::m_buf, bm::set_word_mask, and bm::set_word_shift.
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 237 of file bmvmin.h.
References bm::bvmini< N >::m_buf, bm::set_word_mask, and bm::set_word_shift.
bm::word_t bm::bvmini< N >::m_buf [private] |
Definition at line 266 of file bmvmin.h.
Referenced by bm::bvmini< N >::bvmini(), bm::bvmini< N >::set(), bm::bvmini< N >::swap(), and bm::bvmini< N >::test().