ESPHome 2025.5.0
|
#include <automation.h>
Public Member Functions | |
TemplatableValue () | |
template<typename F , enable_if_t<!is_invocable< F, X... >::value, int > = 0> | |
TemplatableValue (F value) | |
template<typename F , enable_if_t< is_invocable< F, X... >::value, int > = 0> | |
TemplatableValue (F f) | |
bool | has_value () |
T | value (X... x) |
optional< T > | optional_value (X... x) |
T | value_or (X... x, T default_value) |
Protected Types | |
enum | { NONE , VALUE , LAMBDA } |
Protected Attributes | |
enum esphome::TemplatableValue:: { ... } | type_ |
T | value_ {} |
std::function< T(X...)> | f_ {} |
Definition at line 26 of file automation.h.
|
protected |
Enumerator | |
---|---|
NONE | |
VALUE | |
LAMBDA |
Definition at line 61 of file automation.h.
|
inline |
Definition at line 28 of file automation.h.
|
inline |
Definition at line 31 of file automation.h.
|
inline |
Definition at line 34 of file automation.h.
|
inline |
Definition at line 36 of file automation.h.
|
inline |
Definition at line 46 of file automation.h.
|
inline |
Definition at line 38 of file automation.h.
|
inline |
Definition at line 53 of file automation.h.
|
protected |
Definition at line 68 of file automation.h.
enum { ... } esphome::TemplatableValue< T, X >::type_ |
|
protected |
Definition at line 67 of file automation.h.