Bitcoin Core 28.99.0
P2P Digital Currency
|
Iterator type returned by begin(), which efficiently iterates all 1 positions. More...
Public Member Functions | |
Iterator ()=delete | |
Do not allow external code to construct an Iterator. More... | |
constexpr | Iterator (const Iterator &) noexcept=default |
constexpr Iterator & | operator= (const Iterator &) noexcept=default |
constexpr Iterator & | operator++ () noexcept |
Progress to the next 1 bit (only if != IteratorEnd). More... | |
constexpr unsigned | operator* () const noexcept |
Get the current bit position (only if != IteratorEnd). More... | |
Private Member Functions | |
constexpr | Iterator (const std::array< I, N > &ref) noexcept |
Private Attributes | |
const std::array< I, N > * | m_ptr |
Pointer to array to fetch bits from. More... | |
I | m_val |
The remaining bits of (*m_ptr)[m_idx]. More... | |
unsigned | m_pos |
The last reported position. More... | |
unsigned | m_idx |
The index in *m_ptr currently being iterated over. More... | |
Friends | |
class | MultiIntBitSet |
constexpr bool | operator== (const Iterator &a, const IteratorEnd &) noexcept |
Test whether we are done (can only compare with IteratorEnd). More... | |
Iterator type returned by begin(), which efficiently iterates all 1 positions.
|
inlineconstexprprivatenoexcept |
|
delete |
Do not allow external code to construct an Iterator.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Get the current bit position (only if != IteratorEnd).
|
inlineconstexprnoexcept |
Progress to the next 1 bit (only if != IteratorEnd).
|
constexprdefaultnoexcept |
|
friend |
|
friend |
Test whether we are done (can only compare with IteratorEnd).
|
private |
|
private |
|
private |
|
private |