43 void set_up(
const size_t i);
47 bool is_up(
const size_t i)
const;
size_t * get_uparray(const size_t n)
return an array of integers made up of the set bits positions
Definition: bitarray.cc:76
int32_t * data
Definition: bitarray.h:61
void set_up(const size_t i)
set the i-th bit (the data structure is reallocated to store the i-th bit if needed) ...
Definition: bitarray.cc:52
BitArray()
default constructor
Definition: bitarray.h:34
size_t datasize
Definition: bitarray.h:62
Definition: bitarray.h:30
~BitArray()
Definition: bitarray.h:38
bool is_up(const size_t i) const
return true the i-th bit is set (no check is made on the size of the array)
Definition: bitarray.cc:63
BitArray & operator|=(const BitArray &other)
compute bitwse OR of two bit arrays and store the result in the left operand
Definition: bitarray.cc:86
size_t get_upcounter()
return the number of set bit in the array
Definition: bitarray.cc:68