ESPHome  2022.6.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_
 
PhiNode phi_
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

Definition at line 337 of file filter.h.

Constructor & Destructor Documentation

◆ OrFilter()

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

Definition at line 323 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 337 of file filter.cpp.

◆ new_value()

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

Implements esphome::sensor::Filter.

Definition at line 331 of file filter.cpp.

Field Documentation

◆ filters_

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

Definition at line 355 of file filter.h.

◆ phi_

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

Definition at line 356 of file filter.h.


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