ESPHome  2024.11.1
Public Member Functions | Protected Attributes
esphome::number::NumberCall Class Reference

#include <number_call.h>

Public Member Functions

 NumberCall (Number *parent)
 
void perform ()
 
NumberCallset_value (float value)
 
NumberCallnumber_increment (bool cycle)
 
NumberCallnumber_decrement (bool cycle)
 
NumberCallnumber_to_min ()
 
NumberCallnumber_to_max ()
 
NumberCallwith_operation (NumberOperation operation)
 
NumberCallwith_value (float value)
 
NumberCallwith_cycle (bool cycle)
 

Protected Attributes

Number *const parent_
 
NumberOperation operation_ {NUMBER_OP_NONE}
 
optional< float > value_
 
bool cycle_
 

Detailed Description

Definition at line 20 of file number_call.h.

Constructor & Destructor Documentation

◆ NumberCall()

esphome::number::NumberCall::NumberCall ( Number parent)
inlineexplicit

Definition at line 22 of file number_call.h.

Member Function Documentation

◆ number_decrement()

NumberCall & esphome::number::NumberCall::number_decrement ( bool  cycle)

Definition at line 16 of file number_call.cpp.

◆ number_increment()

NumberCall & esphome::number::NumberCall::number_increment ( bool  cycle)

Definition at line 12 of file number_call.cpp.

◆ number_to_max()

NumberCall & esphome::number::NumberCall::number_to_max ( )

Definition at line 22 of file number_call.cpp.

◆ number_to_min()

NumberCall & esphome::number::NumberCall::number_to_min ( )

Definition at line 20 of file number_call.cpp.

◆ perform()

void esphome::number::NumberCall::perform ( )

Definition at line 39 of file number_call.cpp.

◆ set_value()

NumberCall & esphome::number::NumberCall::set_value ( float  value)

Definition at line 10 of file number_call.cpp.

◆ with_cycle()

NumberCall & esphome::number::NumberCall::with_cycle ( bool  cycle)

Definition at line 34 of file number_call.cpp.

◆ with_operation()

NumberCall & esphome::number::NumberCall::with_operation ( NumberOperation  operation)

Definition at line 24 of file number_call.cpp.

◆ with_value()

NumberCall & esphome::number::NumberCall::with_value ( float  value)

Definition at line 29 of file number_call.cpp.

Field Documentation

◆ cycle_

bool esphome::number::NumberCall::cycle_
protected

Definition at line 39 of file number_call.h.

◆ operation_

NumberOperation esphome::number::NumberCall::operation_ {NUMBER_OP_NONE}
protected

Definition at line 37 of file number_call.h.

◆ parent_

Number* const esphome::number::NumberCall::parent_
protected

Definition at line 36 of file number_call.h.

◆ value_

optional<float> esphome::number::NumberCall::value_
protected

Definition at line 38 of file number_call.h.


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