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

#include <helpers.h>

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

Public Member Functions

 TemplatableStringValue ()
 
template<typename F , enable_if_t<!is_callable< F, X... >::value, int > = 0>
 TemplatableStringValue (F value)
 
template<typename F , enable_if_t< is_callable< 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::TemplatableStringValue< X >

Definition at line 272 of file helpers.h.

Constructor & Destructor Documentation

◆ TemplatableStringValue() [1/3]

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

Definition at line 274 of file helpers.h.

◆ TemplatableStringValue() [2/3]

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

Definition at line 277 of file helpers.h.

◆ TemplatableStringValue() [3/3]

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

Definition at line 280 of file helpers.h.


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