A sequential compressed set of bits, where each bit can be individually accessed.
More...
|
| bitset (std::size_t n) |
| Create the bitset with n elements. More...
|
|
bool | get (std::size_t i) const |
| Retrive the value of bit i . More...
|
|
| __attribute__ ((always_inline)) inline void set(std |
| Set the value of bit at index i . More...
|
|
const_iterator | begin () const |
| Begin iterator of only the set bits in the set.
|
|
const_iterator | end () const |
| End iterator of only the set bits in the set.
|
|
std::size_t | size () const |
| The total number of elemnts in the set.
|
|
void | swap (bitset &other) |
| Swap the storage of another bitset.
|
|
bool | empty () const |
| Whether or not any bits are set.
|
|
void | clear (void) |
| Unset all of the bits.
|
|
A sequential compressed set of bits, where each bit can be individually accessed.
◆ bitset()
stapl::sequential::bitset::bitset |
( |
std::size_t |
n | ) |
|
Create the bitset with n
elements.
- Parameters
-
The | number of elements (not bits) in the set |
◆ get()
bool stapl::sequential::bitset::get |
( |
std::size_t |
i | ) |
const |
Retrive the value of bit i
.
- Parameters
-
The | index of the bit to retrieve |
◆ __attribute__()
stapl::sequential::bitset::__attribute__ |
( |
(always_inline) |
| ) |
|
Set the value of bit at index i
.
- Parameters
-
The | index of the bit to set |
The documentation for this class was generated from the following file: