#include <component_iterator.h>
|
| void | yield_after_step_ () |
| | End the current try_advance() pass after this step; lets callbacks that write directly to the socket cap direct writes per pass.
|
| |
| template<typename Container > |
| bool | process_platform_item_ (const Container &items, bool(ComponentIterator::*on_item)(typename Container::value_type)) |
| |
| bool | advance_step_ () |
| | One iteration step; false if no progress was made (callback refused or iterator not running).
|
| |
| void | advance_platform_ () |
| |
Definition at line 30 of file component_iterator.h.
◆ IteratorState
| Enumerator |
|---|
| NONE | |
| BEGIN | |
| ENTITY_TYPE_ | |
| ENTITY_CONTROLLER_TYPE_ | |
| SERVICE | |
| CAMERA | |
| MAX | |
Definition at line 73 of file component_iterator.h.
◆ advance_platform_()
| void esphome::ComponentIterator::advance_platform_ |
( |
| ) |
|
|
protected |
◆ advance_step_()
| bool esphome::ComponentIterator::advance_step_ |
( |
| ) |
|
|
protected |
One iteration step; false if no progress was made (callback refused or iterator not running).
Definition at line 25 of file component_iterator.cpp.
◆ begin()
| void esphome::ComponentIterator::begin |
( |
bool | include_internal = false | ) |
|
◆ completed()
| bool esphome::ComponentIterator::completed |
( |
| ) |
const |
|
inline |
◆ ESPDEPRECATED()
| esphome::ComponentIterator::ESPDEPRECATED |
( |
"Use try_advance() instead. Removed in 2027.3.0" | , |
|
|
"2026.8.1" | ) |
|
inline |
◆ on_begin()
| bool esphome::ComponentIterator::on_begin |
( |
| ) |
|
|
virtual |
◆ on_camera()
◆ on_end()
| bool esphome::ComponentIterator::on_end |
( |
| ) |
|
|
virtual |
◆ on_service()
◆ process_platform_item_()
template<typename Container >
| bool esphome::ComponentIterator::process_platform_item_ |
( |
const Container & | items, |
|
|
bool(ComponentIterator::* | on_item )(typename Container::value_type) ) |
|
inlineprotected |
◆ try_advance()
| ESPHOME_ALWAYS_INLINE void esphome::ComponentIterator::try_advance |
( |
size_t | max_steps | ) |
|
|
inline |
Run up to max_steps iteration steps; stops early when iteration completes or a callback refuses (that step is retried on the next call).
Inline so an idle (completed) iterator costs one compare, no call.
Definition at line 36 of file component_iterator.h.
◆ yield_after_step_()
| void esphome::ComponentIterator::yield_after_step_ |
( |
| ) |
|
|
inlineprotected |
End the current try_advance() pass after this step; lets callbacks that write directly to the socket cap direct writes per pass.
Definition at line 94 of file component_iterator.h.
◆ at_
| uint16_t esphome::ComponentIterator::at_ {0} |
|
protected |
◆ include_internal_
| bool esphome::ComponentIterator::include_internal_ |
|
protected |
◆ state_
◆ yield_requested_
| bool esphome::ComponentIterator::yield_requested_ |
|
protected |
The documentation for this class was generated from the following files: