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

#include <filter.h>

Inheritance diagram for esphome::sensor::OrFilter:

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 371 of file filter.h.

Constructor & Destructor Documentation

◆ OrFilter()

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

Definition at line 354 of file filter.cpp.

Member Function Documentation

◆ initialize()

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

Reimplemented from esphome::sensor::Filter.

Definition at line 368 of file filter.cpp.

◆ new_value()

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

Implements esphome::sensor::Filter.

Definition at line 362 of file filter.cpp.

Field Documentation

◆ filters_

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

Definition at line 389 of file filter.h.

◆ phi_

PhiNode esphome::sensor::OrFilter::phi_

Definition at line 390 of file filter.h.

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