ESPHome  2024.2.1
Public Member Functions | Protected Attributes
esphome::XorCondition< Ts > Class Template Reference

#include <base_automation.h>

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

Public Member Functions

 XorCondition (const std::vector< Condition< Ts... > *> &conditions)
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::vector< Condition< Ts... > * > conditions_

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::XorCondition< Ts >

Definition at line 51 of file base_automation.h.

Constructor & Destructor Documentation

◆ XorCondition()

template<typename... Ts>
esphome::XorCondition< Ts >::XorCondition ( const std::vector< Condition< Ts... > *> &  conditions)

Definition at line 53 of file base_automation.h.

Member Function Documentation

◆ check()

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

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

Definition at line 54 of file base_automation.h.

Field Documentation

◆ conditions_

template<typename... Ts>
std::vector<Condition<Ts...> *> esphome::XorCondition< Ts >::conditions_

Definition at line 64 of file base_automation.h.

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