ESPHome  2023.5.5
Public Member Functions | Protected Member Functions
esphome::Condition< Ts > Class Template Referenceabstract

Base class for all automation conditions. More...

#include <automation.h>

Public Member Functions

virtual bool check (Ts... x)=0
 Check whether this condition passes. This condition check must be instant, and not cause any delays. More...
 
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter. More...
 

Protected Member Functions

template<int... S>
bool check_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 

Detailed Description

template<typename... Ts>
class esphome::Condition< Ts >

Base class for all automation conditions.

Template Parameters
TsThe template parameters to pass when executing.

Definition at line 74 of file automation.h.

Member Function Documentation

◆ check()

template<typename... Ts>
virtual bool esphome::Condition< Ts >::check ( Ts...  x)
pure virtual

◆ check_tuple()

template<typename... Ts>
bool esphome::Condition< Ts >::check_tuple ( const std::tuple< Ts... > &  tuple)
inline

Call check with a tuple of values as parameter.

Definition at line 80 of file automation.h.

◆ check_tuple_()

template<typename... Ts>
template<int... S>
bool esphome::Condition< Ts >::check_tuple_ ( const std::tuple< Ts... > &  tuple,
seq< S... >   
)
inlineprotected

Definition at line 85 of file automation.h.


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