ESPHome
2024.12.4
|
#include <script.h>
Public Types | |
using | Args = std::tuple< TemplatableValue< As, Ts... >... > |
Public Member Functions | |
ScriptExecuteAction (Script< As... > *script) | |
template<typename... F> | |
void | set_args (F... x) |
void | play (Ts... x) override |
![]() | |
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 Member Functions | |
template<std::size_t N> | |
void | eval_args_impl_ (std::tuple< As... > &, std::integral_constant< std::size_t, N >, std::integral_constant< std::size_t, N >, Ts...) |
template<std::size_t I, std::size_t N> | |
void | eval_args_impl_ (std::tuple< As... > &evaled_args, std::integral_constant< std::size_t, I >, std::integral_constant< std::size_t, N > n, Ts... x) |
std::tuple< As... > | eval_args_ (Ts... x) |
![]() | |
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_ () |
Protected Attributes | |
Script< As... > * | script_ |
Args | args_ |
![]() | |
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... | |
using esphome::script::ScriptExecuteAction< Script< As... >, Ts... >::Args = std::tuple<TemplatableValue<As, Ts...>...> |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
|
inline |
|
protected |
|
protected |