|
ESPHome 2025.12.0-dev
|
Iterator support for range-based for loops and API encoding Iterates over set bits and converts bit positions to values Optimization: removes bits from mask as we iterate. More...
#include <finite_set_mask.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = ValueType |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const ValueType * |
| using | reference = ValueType |
Public Member Functions | |
| constexpr | Iterator (bitmask_t mask) |
| constexpr ValueType | operator* () const |
| constexpr Iterator & | operator++ () |
| constexpr bool | operator== (const Iterator &other) const |
| constexpr bool | operator!= (const Iterator &other) const |
Iterator support for range-based for loops and API encoding Iterates over set bits and converts bit positions to values Optimization: removes bits from mask as we iterate.
Definition at line 110 of file finite_set_mask.h.
| using esphome::FiniteSetMask< ValueType, BitPolicy >::Iterator::difference_type = std::ptrdiff_t |
Definition at line 114 of file finite_set_mask.h.
| using esphome::FiniteSetMask< ValueType, BitPolicy >::Iterator::iterator_category = std::forward_iterator_tag |
Definition at line 112 of file finite_set_mask.h.
| using esphome::FiniteSetMask< ValueType, BitPolicy >::Iterator::pointer = const ValueType * |
Definition at line 115 of file finite_set_mask.h.
| using esphome::FiniteSetMask< ValueType, BitPolicy >::Iterator::reference = ValueType |
Definition at line 116 of file finite_set_mask.h.
| using esphome::FiniteSetMask< ValueType, BitPolicy >::Iterator::value_type = ValueType |
Definition at line 113 of file finite_set_mask.h.
|
inlineexplicitconstexpr |
Definition at line 118 of file finite_set_mask.h.
|
inlineconstexpr |
Definition at line 133 of file finite_set_mask.h.
|
inlineconstexpr |
Definition at line 120 of file finite_set_mask.h.
|
inlineconstexpr |
Definition at line 125 of file finite_set_mask.h.
|
inlineconstexpr |
Definition at line 131 of file finite_set_mask.h.