|
ESPHome 2026.5.0-dev
|
#include <homeassistant_service.h>
Public Member Functions | |
| TemplatableStringValue () | |
| template<typename F , enable_if_t<!is_invocable< F, X... >::value, int > = 0> | |
| TemplatableStringValue (F value) | |
| template<typename F , enable_if_t< is_invocable< F, X... >::value, int > = 0> | |
| TemplatableStringValue (F f) | |
Public Member Functions inherited from esphome::TemplatableValue< std::string, X... > | |
| TemplatableValue () | |
| TemplatableValue (const char *str) | |
| TemplatableValue (const __FlashStringHelper *str) | |
| template<typename F > requires (!std::invocable<F, X...>) | |
| TemplatableValue (F value) | |
| template<typename F > requires std::invocable<F, X...> && std::convertible_to<F, std::string (*)(X...)> | |
| TemplatableValue (F f) | |
| template<typename F > requires std::invocable<F, X...> &&(!std::convertible_to<F, std::string (*)(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 () const |
| std::string | value (X... x) const |
| optional< std::string > | optional_value (X... x) const |
| std::string | value_or (X... x, std::string default_value) const |
| bool | is_static_string () const |
| Check if this holds a static string (const char* stored without allocation) The pointer is always directly readable (RAM or flash-mapped). | |
| const char * | get_static_string () const |
| Get the static string pointer (only valid if is_static_string() returns true) The pointer is always directly readable — FLASH_STRING uses a separate type. | |
| bool | is_empty () const |
| Check if the string value is empty without allocating. | |
| StringRef | ref_or_copy_to (char *lambda_buf, size_t lambda_buf_size) const |
| Get a StringRef to the string value without heap allocation when possible. | |
Additional Inherited Members | |
Data Fields inherited from esphome::TemplatableValue< std::string, X... > | |
Protected Types inherited from esphome::TemplatableValue< std::string, X... > | |
| enum | : uint8_t { NONE , VALUE , LAMBDA , STATELESS_LAMBDA , STATIC_STRING , FLASH_STRING } |
Protected Attributes inherited from esphome::TemplatableValue< std::string, X... > | |
| enum esphome::TemplatableValue< std::string, X... >:: { ... } | type_ |
| union esphome::TemplatableValue< std::string, X... >:: { ... } | |
Definition at line 19 of file homeassistant_service.h.
|
inline |
Definition at line 43 of file homeassistant_service.h.
|
inline |
Definition at line 46 of file homeassistant_service.h.
|
inline |
Definition at line 49 of file homeassistant_service.h.