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

Detailed Description

Definition at line 372 of file filter.h.

Constructor & Destructor Documentation

◆ OrFilter()

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

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

◆ new_value()

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

Implements esphome::sensor::Filter.

Definition at line 369 of file filter.cpp.

Field Documentation

◆ filters_

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

Definition at line 390 of file filter.h.

◆ has_value_

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

Definition at line 391 of file filter.h.

◆ phi_

PhiNode esphome::sensor::OrFilter::phi_

Definition at line 392 of file filter.h.

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