ESPHome
2024.11.3
|
#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 25 of file automation.h.
|
protected |
Enumerator | |
---|---|
NONE | |
VALUE | |
LAMBDA |
Definition at line 60 of file automation.h.
|
inline |
Definition at line 27 of file automation.h.
|
inline |
Definition at line 30 of file automation.h.
|
inline |
Definition at line 33 of file automation.h.
|
inline |
Definition at line 35 of file automation.h.
|
inline |
Definition at line 45 of file automation.h.
|
inline |
Definition at line 37 of file automation.h.
|
inline |
Definition at line 52 of file automation.h.
|
protected |
Definition at line 67 of file automation.h.
enum { ... } esphome::TemplatableValue< T, X >::type_ |
|
protected |
Definition at line 66 of file automation.h.