ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
esphome::AndCondition< N, Ts > Class Template Reference

#include <base_automation.h>

Inheritance diagram for esphome::AndCondition< N, Ts >:
esphome::Condition< Ts... >

Public Member Functions

 AndCondition (std::initializer_list< Condition< Ts... > * > conditions)
 
bool check (const 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.
 

Protected Attributes

std::array< Condition< Ts... > *, N > conditions_ {}
 

Additional Inherited Members

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

Detailed Description

template<size_t N, typename... Ts>
class esphome::AndCondition< N, Ts >

Definition at line 18 of file base_automation.h.

Constructor & Destructor Documentation

◆ AndCondition()

template<size_t N, typename... Ts>
esphome::AndCondition< N, Ts >::AndCondition ( std::initializer_list< Condition< Ts... > * > conditions)
inlineexplicit

Definition at line 20 of file base_automation.h.

Member Function Documentation

◆ check()

template<size_t N, typename... Ts>
bool esphome::AndCondition< N, Ts >::check ( const Ts &... x)
inlineoverridevirtual

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

Definition at line 23 of file base_automation.h.

Field Documentation

◆ conditions_

template<size_t N, typename... Ts>
std::array<Condition<Ts...> *, N> esphome::AndCondition< N, Ts >::conditions_ {}
protected

Definition at line 33 of file base_automation.h.


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