#include <bitvector.h>
Public Methods | |
bitvector (size_t size) | |
~bitvector () | |
bool | test (size_t pos) const |
bool | set (size_t pos) |
void | set (const ibitvector &x) |
void | clear () |
size_t | get_count () const |
size_t | get_size () const |
Private Methods | |
size_t | element_size () const |
Static Private Methods | |
size_t | set (bv_atom_t *x, bv_atom_t *xe, const bv_atom_t *y, const bv_atom_t *ye) |
Private Attributes | |
bv_atom_t * | elements |
const size_t | size |
size_t | count |
This bitvector is implemented by a single array.
|
constructs a bitvector capable of holding size bits |
|
number of bits set to 1 * |
|
total bit capacity * |