Iterate for iterate over all bits of a Bitset that are set to true.
More...
#include <Bitset.h>
Iterate for iterate over all bits of a Bitset that are set to true.
If you want to iterate of all bits that are false use operator~()
.
Definition at line 36 of file Bitset.h.
◆ iterator()
carl::Bitset::iterator::iterator |
( |
const Bitset & |
b, |
|
|
std::size_t |
bit |
|
) |
| |
|
inline |
Construct a new iterator from a Bitset and a bit.
Definition at line 49 of file Bitset.h.
◆ compatible()
bool carl::Bitset::iterator::compatible |
( |
const iterator & |
rhs | ) |
const |
|
inlineprivate |
Check that two iterators speak about the same Bitset.
Definition at line 44 of file Bitset.h.
◆ operator std::size_t()
carl::Bitset::iterator::operator std::size_t |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool carl::Bitset::iterator::operator!= |
( |
const iterator & |
rhs | ) |
const |
|
inline |
Compare two iterators. Asserts that they are compatible.
Definition at line 76 of file Bitset.h.
◆ operator*()
std::size_t carl::Bitset::iterator::operator* |
( |
| ) |
const |
|
inline |
◆ operator++() [1/2]
iterator& carl::Bitset::iterator::operator++ |
( |
| ) |
|
|
inline |
Step to the next bit that is set to true.
Definition at line 60 of file Bitset.h.
◆ operator++() [2/2]
iterator carl::Bitset::iterator::operator++ |
( |
int |
| ) |
|
|
inline |
Step to the next bit that is set to true.
Definition at line 65 of file Bitset.h.
◆ operator<()
bool carl::Bitset::iterator::operator< |
( |
const iterator & |
rhs | ) |
const |
|
inline |
Compare two iterators. Asserts that they are compatible.
Definition at line 81 of file Bitset.h.
◆ operator==()
bool carl::Bitset::iterator::operator== |
( |
const iterator & |
rhs | ) |
const |
|
inline |
Compare two iterators. Asserts that they are compatible.
Definition at line 71 of file Bitset.h.
◆ mBit
std::size_t carl::Bitset::iterator::mBit |
|
private |
The current bit.
Definition at line 41 of file Bitset.h.
◆ mBitset
const Bitset& carl::Bitset::iterator::mBitset |
|
private |
The documentation for this struct was generated from the following file: