BitMagic-C++
|
Bitvector class with very limited functionality. More...
#include <bmvmin.h>
Public Types | |
typedef bm::id_t | size_type |
Public Member Functions | |
bvector_mini (size_type size) | |
bvector_mini (const bvector_mini &bvect) | |
~bvector_mini () | |
int | is_bit_true (size_type pos) const |
Checks if bit pos 1 or 0. Returns 0 if 0 and non zero otherwise. More... | |
void | set_bit (size_type pos) |
Sets bit number pos to 1. More... | |
void | clear_bit (size_type pos) |
Sets bit number pos to 0. More... | |
size_type | bit_count () const |
Counts number of bits ON. More... | |
int | compare (const bvector_mini &bvect) |
Comparison. More... | |
size_type | get_first () const |
Returns index of the first ON bit. More... | |
size_type | get_next (size_type idx) const |
Returns index of next bit, which is ON. More... | |
void | combine_and (const bvector_mini &bvect) |
void | combine_xor (const bvector_mini &bvect) |
void | combine_or (const bvector_mini &bvect) |
void | combine_sub (const bvector_mini &bvect) |
const unsigned * | get_buf () const |
unsigned | mem_used () const |
void | swap (bvector_mini &bvm) |
Bitvector class with very limited functionality.
Class implements simple bitset and used for internal and testing purposes.
|
inline |
Counts number of bits ON.
Definition at line 327 of file bmvmin.h.
Referenced by bm::bvector_mini< A >::compare().
|
inline |
|
inline |
Comparison.
Definition at line 340 of file bmvmin.h.
References bm::bvector_mini< A >::bit_count(), bm::bvector_mini< A >::get_first(), bm::bvector< Alloc >::get_first(), bm::bvector_mini< A >::get_next(), and bm::bvector< Alloc >::get_next().
|
inline |
Returns index of the first ON bit.
Definition at line 371 of file bmvmin.h.
Referenced by bm::bvector_mini< A >::compare().
|
inline |
Returns index of next bit, which is ON.
Definition at line 394 of file bmvmin.h.
Referenced by bm::bvector_mini< A >::compare().
|
inline |
|
inline |