ESPHome  2024.11.3
Data Structures | Public Member Functions | Protected Attributes
esphome::sensor::OrFilter Class Reference

#include <filter.h>

Inheritance diagram for esphome::sensor::OrFilter:
esphome::sensor::Filter

Data Structures

class  PhiNode
 

Public Member Functions

 OrFilter (std::vector< Filter *> filters)
 
void initialize (Sensor *parent, Filter *next) override
 
optional< float > new_value (float value) override
 
- Public Member Functions inherited from esphome::sensor::Filter
void input (float value)
 
void output (float value)
 

Protected Attributes

std::vector< Filter * > filters_
 
bool has_value_ {false}
 
PhiNode phi_
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

Definition at line 371 of file filter.h.

Constructor & Destructor Documentation

◆ OrFilter()

esphome::sensor::OrFilter::OrFilter ( std::vector< Filter *>  filters)
explicit

Definition at line 358 of file filter.cpp.

Member Function Documentation

◆ initialize()

void esphome::sensor::OrFilter::initialize ( Sensor parent,
Filter next 
)
overridevirtual

Reimplemented from esphome::sensor::Filter.

Definition at line 376 of file filter.cpp.

◆ new_value()

optional< float > esphome::sensor::OrFilter::new_value ( float  value)
overridevirtual

Implements esphome::sensor::Filter.

Definition at line 369 of file filter.cpp.

Field Documentation

◆ filters_

std::vector<Filter *> esphome::sensor::OrFilter::filters_
protected

Definition at line 389 of file filter.h.

◆ has_value_

bool esphome::sensor::OrFilter::has_value_ {false}
protected

Definition at line 390 of file filter.h.

◆ phi_

PhiNode esphome::sensor::OrFilter::phi_
protected

Definition at line 391 of file filter.h.


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