Non-modifying enumerator of elements of a bit set.
More...
#include <base/collection/BitSet.h>
Inherits Enumerator< TRAITS >.
Inherited by BitSet::BitSetReadEnumerator.
Non-modifying enumerator of elements of a bit set.
Enumerator of elements of a bit set.
- Version
- 1.0
- Examples
- testsuite/BitSet.cpp.
◆ BitSetEnumerator() [1/2]
BitSet::BitSetEnumerator::BitSetEnumerator |
( |
unsigned long * |
_word, |
|
|
unsigned int |
_count |
|
) |
| |
|
inlineexplicitprotectednoexcept |
Initializes an enumeration of all the elements of a bit set.
- Parameters
-
word | Specifies the beginning of the enumeration. |
count | The number of bits in the set. |
◆ BitSetEnumerator() [2/2]
Initializes enumeration from other enumeration.
◆ hasNext()
bool BitSet::BitSetEnumerator::hasNext |
( |
| ) |
const |
|
inlinevirtualnoexcept |
◆ next()
◆ operator!=()
bool BitSet::BitSetEnumerator::operator!= |
( |
const BitSetEnumerator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the enumerations aren't pointing to the same position.
◆ operator==()
bool BitSet::BitSetEnumerator::operator== |
( |
const BitSetEnumerator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the enumerations are pointing to the same position.
◆ count
unsigned int BitSet::BitSetEnumerator::count = 0 |
|
protected |
◆ current
◆ word
unsigned long* BitSet::BitSetEnumerator::word = nullptr |
|
protected |
The current position in the enumeration.