ESPHome  1.15.2
Public Member Functions | Protected Attributes
esphome::LambdaCondition< Ts > Class Template Reference

#include <base_automation.h>

Inheritance diagram for esphome::LambdaCondition< Ts >:
esphome::Condition< Ts... >

Public Member Functions

 LambdaCondition (std::function< bool(Ts...)> &&f)
 
bool check (Ts... x) override
 
- Public Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter. More...
 

Protected Attributes

std::function< bool(Ts...)> f_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 

Detailed Description

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

Definition at line 49 of file base_automation.h.

Constructor & Destructor Documentation

◆ LambdaCondition()

template<typename... Ts>
esphome::LambdaCondition< Ts >::LambdaCondition ( std::function< bool(Ts...)> &&  f)
inlineexplicit

Definition at line 51 of file base_automation.h.

Member Function Documentation

◆ check()

template<typename... Ts>
bool esphome::LambdaCondition< Ts >::check ( Ts...  x)
inlineoverridevirtual

Implements esphome::Condition< Ts... >.

Definition at line 52 of file base_automation.h.

Field Documentation

◆ f_

template<typename... Ts>
std::function<bool(Ts...)> esphome::LambdaCondition< Ts >::f_
protected

Definition at line 55 of file base_automation.h.


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