|
ESPHome 2025.12.0-dev
|
#include <automation.h>
Public Member Functions | |
| TemplatableValue () | |
| 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 } |
Protected Attributes | ||
| enum esphome::TemplatableValue:: { ... } | type_ | |
| union { | ||
| T value_ | ||
| std::function< T(X...)> * f_ | ||
| T(* stateless_f_ )(X...) | ||
| }; | ||
Definition at line 28 of file automation.h.
|
protected |
| Enumerator | |
|---|---|
| NONE | |
| VALUE | |
| LAMBDA | |
| STATELESS_LAMBDA | |
Definition at line 130 of file automation.h.
|
inline |
Definition at line 30 of file automation.h.
|
inline |
Definition at line 32 of file automation.h.
|
inline |
Definition at line 38 of file automation.h.
|
inline |
Definition at line 45 of file automation.h.
|
inline |
Definition at line 50 of file automation.h.
|
inlinenoexcept |
Definition at line 61 of file automation.h.
|
inline |
Definition at line 90 of file automation.h.
|
inline |
Definition at line 99 of file automation.h.
|
inline |
Definition at line 74 of file automation.h.
|
inlinenoexcept |
Definition at line 82 of file automation.h.
|
inline |
Definition at line 115 of file automation.h.
|
inline |
Definition at line 101 of file automation.h.
|
inline |
Definition at line 122 of file automation.h.
| union { ... } esphome::TemplatableValue< T, X > |
| std::function<T(X...)>* esphome::TemplatableValue< T, X >::f_ |
Definition at line 139 of file automation.h.
| T(* esphome::TemplatableValue< T, X >::stateless_f_) (X...) |
Definition at line 140 of file automation.h.
| enum { ... } esphome::TemplatableValue< T, X >::type_ |
| T esphome::TemplatableValue< T, X >::value_ |
Definition at line 138 of file automation.h.