ESPHome  2024.5.4
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::duty_time_sensor::RunningCondition< Ts > Class Template Reference

#include <duty_time_sensor.h>

Inheritance diagram for esphome::duty_time_sensor::RunningCondition< Ts >:
esphome::Condition< Ts... > esphome::Parented< DutyTimeSensor >

Public Member Functions

 RunningCondition (DutyTimeSensor *parent, bool state)
 
- 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...
 
- Public Member Functions inherited from esphome::Parented< DutyTimeSensor >
 Parented ()
 
 Parented (DutyTimeSensor *parent)
 
DutyTimeSensor * get_parent () const
 Get the parent of this object. More...
 
void set_parent (DutyTimeSensor *parent)
 Set the parent of this object. More...
 

Protected Member Functions

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

Protected Attributes

bool state_
 
- Protected Attributes inherited from esphome::Parented< DutyTimeSensor >
DutyTimeSensor * parent_
 

Detailed Description

template<typename... Ts>
class esphome::duty_time_sensor::RunningCondition< Ts >

Definition at line 66 of file duty_time_sensor.h.

Constructor & Destructor Documentation

◆ RunningCondition()

template<typename... Ts>
esphome::duty_time_sensor::RunningCondition< Ts >::RunningCondition ( DutyTimeSensor parent,
bool  state 
)
inlineexplicit

Definition at line 68 of file duty_time_sensor.h.

Member Function Documentation

◆ check()

template<typename... Ts>
bool esphome::duty_time_sensor::RunningCondition< Ts >::check ( Ts...  x)
inlineoverrideprotectedvirtual

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

Definition at line 71 of file duty_time_sensor.h.

Field Documentation

◆ state_

template<typename... Ts>
bool esphome::duty_time_sensor::RunningCondition< Ts >::state_
protected

Definition at line 72 of file duty_time_sensor.h.


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