ESPHome  2024.3.1
Public Member Functions | Protected Attributes
esphome::number::NumberInRangeCondition< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::number::NumberInRangeCondition< Ts >:
esphome::Condition< Ts... >

Public Member Functions

 NumberInRangeCondition (Number *parent)
 
void set_min (float min)
 
void set_max (float max)
 
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

Numberparent_
 
float min_ {NAN}
 
float max_ {NAN}
 

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::number::NumberInRangeCondition< Ts >

Definition at line 71 of file automation.h.

Constructor & Destructor Documentation

◆ NumberInRangeCondition()

template<typename... Ts>
esphome::number::NumberInRangeCondition< Ts >::NumberInRangeCondition ( Number parent)
inline

Definition at line 73 of file automation.h.

Member Function Documentation

◆ check()

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

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

Definition at line 77 of file automation.h.

◆ set_max()

template<typename... Ts>
void esphome::number::NumberInRangeCondition< Ts >::set_max ( float  max)
inline

Definition at line 76 of file automation.h.

◆ set_min()

template<typename... Ts>
void esphome::number::NumberInRangeCondition< Ts >::set_min ( float  min)
inline

Definition at line 75 of file automation.h.

Field Documentation

◆ max_

template<typename... Ts>
float esphome::number::NumberInRangeCondition< Ts >::max_ {NAN}
protected

Definition at line 91 of file automation.h.

◆ min_

template<typename... Ts>
float esphome::number::NumberInRangeCondition< Ts >::min_ {NAN}
protected

Definition at line 90 of file automation.h.

◆ parent_

template<typename... Ts>
Number* esphome::number::NumberInRangeCondition< Ts >::parent_
protected

Definition at line 89 of file automation.h.


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