ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::ActionList< Ts > Class Template Reference

#include <automation.h>

Public Member Functions

void add_action (Action< Ts... > *action)
 
void add_actions (const std::initializer_list< Action< Ts... > * > &actions)
 
void set_owner (Action< Ts... > *owner)
 Resume owner via play() when the list finishes; call once, after adding actions.
 
void play (const Ts &...x) ESPHOME_ALWAYS_INLINE
 
void play_tuple (const std::tuple< Ts... > &tuple)
 
void stop ()
 
bool empty () const
 
bool is_running ()
 Check if any action in this action list is currently running.
 
int num_running ()
 Return the number of actions in this action list that are currently running.
 

Protected Member Functions

template<size_t... S>
void play_tuple_ (const std::tuple< Ts... > &tuple, std::index_sequence< S... >)
 
Action< Ts... > ** tail_ ()
 

Protected Attributes

Action< Ts... > * actions_ {nullptr}
 

Detailed Description

template<typename... Ts>
class esphome::ActionList< Ts >

Definition at line 662 of file automation.h.

Member Function Documentation

◆ add_action()

template<typename... Ts>
void esphome::ActionList< Ts >::add_action ( Action< Ts... > * action)
inline

Definition at line 664 of file automation.h.

◆ add_actions()

template<typename... Ts>
void esphome::ActionList< Ts >::add_actions ( const std::initializer_list< Action< Ts... > * > & actions)
inline

Definition at line 668 of file automation.h.

◆ empty()

template<typename... Ts>
bool esphome::ActionList< Ts >::empty ( ) const
inline

Definition at line 696 of file automation.h.

◆ is_running()

template<typename... Ts>
bool esphome::ActionList< Ts >::is_running ( )
inline

Check if any action in this action list is currently running.

Definition at line 699 of file automation.h.

◆ num_running()

template<typename... Ts>
int esphome::ActionList< Ts >::num_running ( )
inline

Return the number of actions in this action list that are currently running.

Definition at line 705 of file automation.h.

◆ play()

template<typename... Ts>
void esphome::ActionList< Ts >::play ( const Ts &... x)
inline

Definition at line 685 of file automation.h.

◆ play_tuple()

template<typename... Ts>
void esphome::ActionList< Ts >::play_tuple ( const std::tuple< Ts... > & tuple)
inline

Definition at line 689 of file automation.h.

◆ play_tuple_()

template<typename... Ts>
template<size_t... S>
void esphome::ActionList< Ts >::play_tuple_ ( const std::tuple< Ts... > & tuple,
std::index_sequence< S... >  )
inlineprotected

Definition at line 712 of file automation.h.

◆ set_owner()

template<typename... Ts>
void esphome::ActionList< Ts >::set_owner ( Action< Ts... > * owner)
inline

Resume owner via play() when the list finishes; call once, after adding actions.

Definition at line 677 of file automation.h.

◆ stop()

template<typename... Ts>
void esphome::ActionList< Ts >::stop ( )
inline

Definition at line 692 of file automation.h.

◆ tail_()

template<typename... Ts>
Action< Ts... > ** esphome::ActionList< Ts >::tail_ ( )
inlineprotected

Definition at line 716 of file automation.h.

Field Documentation

◆ actions_

template<typename... Ts>
Action<Ts...>* esphome::ActionList< Ts >::actions_ {nullptr}
protected

Definition at line 727 of file automation.h.


The documentation for this class was generated from the following file: