ESPHome  2024.11.0
Public Types | Public Member Functions | Protected Attributes
esphome::globals::GlobalVarSetAction< C, Ts > Class Template Reference

#include <globals_component.h>

Inheritance diagram for esphome::globals::GlobalVarSetAction< C, Ts >:
esphome::Action< Ts... >

Public Types

using T = typename C::value_type
 

Public Member Functions

 GlobalVarSetAction (C *parent)
 
 TEMPLATABLE_VALUE (T, value)
 
void play (Ts... x) override
 
- Public Member Functions inherited from esphome::Action< Ts... >
virtual void play_complex (Ts... x)
 
virtual void stop_complex ()
 
virtual bool is_running ()
 Check if this or any of the following actions are currently running. More...
 
int num_running_total ()
 The total number of actions that are currently running in this plus any of the following actions in the chain. More...
 

Protected Attributes

C * parent_
 
- Protected Attributes inherited from esphome::Action< Ts... >
friend ActionList< Ts... >
 
Action< Ts... > * next_
 
int num_running_
 The number of instances of this sequence in the list of actions that is currently being executed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Action< Ts... >
void play_next_ (Ts... x)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple)
 
virtual void stop ()
 
void stop_next_ ()
 
bool is_running_next_ ()
 

Detailed Description

template<class C, typename... Ts>
class esphome::globals::GlobalVarSetAction< C, Ts >

Definition at line 126 of file globals_component.h.

Member Typedef Documentation

◆ T

template<class C , typename... Ts>
using esphome::globals::GlobalVarSetAction< C, Ts >::T = typename C::value_type

Definition at line 130 of file globals_component.h.

Constructor & Destructor Documentation

◆ GlobalVarSetAction()

template<class C , typename... Ts>
esphome::globals::GlobalVarSetAction< C, Ts >::GlobalVarSetAction ( C *  parent)
inlineexplicit

Definition at line 128 of file globals_component.h.

Member Function Documentation

◆ play()

template<class C , typename... Ts>
void esphome::globals::GlobalVarSetAction< C, Ts >::play ( Ts...  x)
inlineoverridevirtual

Implements esphome::Action< Ts... >.

Definition at line 134 of file globals_component.h.

◆ TEMPLATABLE_VALUE()

template<class C , typename... Ts>
esphome::globals::GlobalVarSetAction< C, Ts >::TEMPLATABLE_VALUE ( T  ,
value   
)

Field Documentation

◆ parent_

template<class C , typename... Ts>
C* esphome::globals::GlobalVarSetAction< C, Ts >::parent_
protected

Definition at line 137 of file globals_component.h.


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