|
ESPHome 2025.12.1
|
#include <automation.h>
Public Member Functions | |
| TemplatableValue () | |
| TemplatableValue (const char *str) | |
| template<typename F > requires (!std::invocable<F, X...>) | |
| TemplatableValue (F value) | |
| template<typename F > requires std::invocable<F, X...> && std::convertible_to<F, T (*)(X...)> | |
| TemplatableValue (F f) | |
| template<typename F > requires std::invocable<F, X...> &&(!std::convertible_to<F, T (*)(X...)>) | |
| TemplatableValue (F f) | |
| TemplatableValue (const TemplatableValue &other) | |
| TemplatableValue (TemplatableValue &&other) noexcept | |
| TemplatableValue & | operator= (const TemplatableValue &other) |
| TemplatableValue & | operator= (TemplatableValue &&other) noexcept |
| ~TemplatableValue () | |
| bool | has_value () |
| T | value (X... x) |
| optional< T > | optional_value (X... x) |
| T | value_or (X... x, T default_value) |
Protected Types | |
| enum | : uint8_t { NONE , VALUE , LAMBDA , STATELESS_LAMBDA , STATIC_STRING } |
Protected Attributes | ||
| enum esphome::TemplatableValue:: { ... } | type_ | |
| union { | ||
| T value_ | ||
| std::function< T(X...)> * f_ | ||
| T(* stateless_f_ )(X...) | ||
| const char * static_str_ | ||
| }; | ||
Definition at line 44 of file automation.h.
|
protected |
| Enumerator | |
|---|---|
| NONE | |
| VALUE | |
| LAMBDA | |
| STATELESS_LAMBDA | |
| STATIC_STRING | |
Definition at line 163 of file automation.h.
|
inline |
Definition at line 46 of file automation.h.
|
inline |
Definition at line 50 of file automation.h.
|
inline |
Definition at line 54 of file automation.h.
|
inline |
Definition at line 60 of file automation.h.
|
inline |
Definition at line 67 of file automation.h.
|
inline |
Definition at line 72 of file automation.h.
|
inlinenoexcept |
Definition at line 85 of file automation.h.
|
inline |
Definition at line 116 of file automation.h.
|
inline |
Definition at line 125 of file automation.h.
|
inline |
Definition at line 100 of file automation.h.
|
inlinenoexcept |
Definition at line 108 of file automation.h.
|
inline |
Definition at line 148 of file automation.h.
|
inline |
Definition at line 127 of file automation.h.
|
inline |
Definition at line 155 of file automation.h.
| union { ... } esphome::TemplatableValue< T, X > |
| std::function<T(X...)>* esphome::TemplatableValue< T, X >::f_ |
Definition at line 173 of file automation.h.
| T(* esphome::TemplatableValue< T, X >::stateless_f_) (X...) |
Definition at line 174 of file automation.h.
| const char* esphome::TemplatableValue< T, X >::static_str_ |
Definition at line 175 of file automation.h.
| enum { ... } esphome::TemplatableValue< T, X >::type_ |
| T esphome::TemplatableValue< T, X >::value_ |
Definition at line 172 of file automation.h.