A bit vector.
More...
#include <misc/bitvect.hh>
|
typedef unsigned long | block_t |
|
|
| bitvect (const bitvect &other) |
|
bitvect * | clone () const |
|
void | make_empty () |
|
bitvect & | operator= (const bitvect &other) |
|
void | reserve_blocks (size_t new_block_count) |
|
size_t | used_blocks () const |
|
void | push_back (bool val) |
| Append one bit. More...
|
|
void | push_back (block_t data, unsigned count) |
| Append the lowest count bits of data. More...
|
|
size_t | size () const |
|
size_t | capacity () const |
|
size_t | hash () const |
|
bool | get (size_t pos) const |
|
void | clear_all () |
|
bool | is_fully_clear () const |
|
bool | is_fully_set () const |
|
void | set_all () |
|
void | flip_all () |
|
void | set (size_t pos) |
|
void | clear (size_t pos) |
|
void | flip (size_t pos) |
|
bitvect & | operator|= (const bitvect &other) |
|
bitvect & | operator&= (const bitvect &other) |
|
bitvect & | operator^= (const bitvect &other) |
|
bitvect & | operator-= (const bitvect &other) |
|
bool | operator== (const bitvect &other) const |
|
bool | operator!= (const bitvect &other) const |
|
bool | operator< (const bitvect &other) const |
|
bool | operator>= (const bitvect &other) const |
|
bool | operator> (const bitvect &other) const |
|
bool | operator<= (const bitvect &other) const |
|
bitvect * | extract_range (size_t begin, size_t end) |
|
|
SPOT_API bitvect * | spot::make_bitvect (size_t bitcount) |
|
SPOT_API std::ostream & | operator<< (std::ostream &, const bitvect &) |
| Print a bitvect. More...
|
|
SPOT_API bitvect_array * | spot::make_bitvect_array (size_t bitcount, size_t vectcount) |
|
void spot::bitvect::push_back |
( |
bool |
val) | |
|
|
inline |
void spot::bitvect::push_back |
( |
block_t |
data, |
|
|
unsigned |
count |
|
) |
| |
|
inline |
Append the lowest count bits of data.
void spot::bitvect::reserve_blocks |
( |
size_t |
new_block_count) | |
|
|
inline |
Grow the bitvector to new_block_count blocks.
This only changes the capacity of the bitvector, not its size.
SPOT_API std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const bitvect & |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: