ESPHome  2024.4.0
Public Member Functions
esphome::api::TemplatableStringValue< X > Class Template Reference

#include <homeassistant_service.h>

Inheritance diagram for esphome::api::TemplatableStringValue< X >:
esphome::TemplatableValue< std::string, X... >

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 (F value)
 
 TemplatableValue (F f)
 
bool has_value ()
 
std::string value (X... x)
 
optional< std::string > optional_value (X... x)
 
std::string value_or (X... x, std::string default_value)
 

Additional Inherited Members

- Protected Types inherited from esphome::TemplatableValue< std::string, X... >
enum  
 
- Protected Attributes inherited from esphome::TemplatableValue< std::string, X... >
enum esphome::TemplatableValue:: { ... }  type_
 
std::string value_
 
std::function< std::string(X...)> f_
 

Detailed Description

template<typename... X>
class esphome::api::TemplatableStringValue< X >

Definition at line 13 of file homeassistant_service.h.

Constructor & Destructor Documentation

◆ TemplatableStringValue() [1/3]

template<typename... X>
esphome::api::TemplatableStringValue< X >::TemplatableStringValue ( )
inline

Definition at line 15 of file homeassistant_service.h.

◆ TemplatableStringValue() [2/3]

template<typename... X>
template<typename F , enable_if_t<!is_invocable< F, X... >::value, int > = 0>
esphome::api::TemplatableStringValue< X >::TemplatableStringValue ( value)
inline

Definition at line 18 of file homeassistant_service.h.

◆ TemplatableStringValue() [3/3]

template<typename... X>
template<typename F , enable_if_t< is_invocable< F, X... >::value, int > = 0>
esphome::api::TemplatableStringValue< X >::TemplatableStringValue ( f)
inline

Definition at line 21 of file homeassistant_service.h.


The documentation for this class was generated from the following file: