|
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. | |
| void | set_bit (size_type pos) |
| Sets bit number pos to 1. | |
| void | clear_bit (size_type pos) |
| Sets bit number pos to 0. | |
| size_type | bit_count () const |
| Counts number of bits ON. | |
| int | compare (const bvector_mini &bvect) |
| Comparison. | |
| size_type | get_first () const |
| Returns index of the first ON bit. | |
| size_type | get_next (size_type idx) const |
| Returns index of next bit, which is ON. | |
| 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.
| typedef bm::id_t bm::bvector_mini< A >::size_type |
|
inline |
Definition at line 281 of file bmvmin.h.
Referenced by bvector_mini(), combine_and(), combine_or(), combine_sub(), combine_xor(), compare(), mem_used(), and swap().
|
inline |
Definition at line 289 of file bmvmin.h.
References bvector_mini().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 416 of file bmvmin.h.
References bvector_mini().
|
inline |
Definition at line 436 of file bmvmin.h.
References bvector_mini().
|
inline |
Definition at line 446 of file bmvmin.h.
References bvector_mini().
|
inline |
Definition at line 426 of file bmvmin.h.
References bvector_mini().
|
inline |
Comparison.
Definition at line 340 of file bmvmin.h.
References bit_count(), bvector_mini(), get_first(), and get_next().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 457 of file bmvmin.h.
References bvector_mini().
|
inline |
|
inline |
Definition at line 462 of file bmvmin.h.
References bvector_mini().