#include <bmvmin.h>
Public Member Functions | |
| bvector_mini (unsigned size) | |
| bvector_mini (const bvector_mini &bvect) | |
| ~bvector_mini () | |
| int | is_bit_true (unsigned pos) const |
| Checks if bit pos 1 or 0. Returns 0 if 0 and non zero otherwise. | |
| void | set_bit (unsigned pos) |
| Sets bit number pos to 1. | |
| void | clear_bit (unsigned pos) |
| Sets bit number pos to 0. | |
| unsigned | bit_count () const |
| Counts number of bits ON. | |
| int | compare (const bvector_mini &bvect) |
| Comparison. | |
| unsigned | get_first () const |
| Returns index of the first ON bit. | |
| unsigned | get_next (unsigned 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) |
Class implements simple bitset and used for internal and testing purposes.
Definition at line 274 of file bmvmin.h.
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Counts number of bits ON.
Definition at line 326 of file bmvmin.h. Referenced by bm::bvector_mini< A >::compare(). |
|
||||||||||
|
Sets bit number pos to 0.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Comparison.
Definition at line 340 of file bmvmin.h. References bm::bvector_mini< A >::bit_count(), BM_ASSERT, bm::bvector_mini< A >::get_first(), and bm::bvector_mini< A >::get_next(). |
|
|||||||||
|
|
|
|||||||||
|
Returns index of the first ON bit.
Definition at line 378 of file bmvmin.h. Referenced by bm::bvector_mini< A >::compare(). |
|
||||||||||
|
Returns index of next bit, which is ON.
Definition at line 404 of file bmvmin.h. Referenced by bm::bvector_mini< A >::compare(). |
|
||||||||||
|
Checks if bit pos 1 or 0. Returns 0 if 0 and non zero otherwise.
|
|
|||||||||
|
|
|
||||||||||
|
Sets bit number pos to 1.
|
|
||||||||||
|
Definition at line 484 of file bmvmin.h. References BM_ASSERT. |
1.4.1