ESPHome  1.15.2
Public Member Functions | Protected Attributes
esphome::Deduplicator< T > Class Template Reference

#include <helpers.h>

Public Member Functions

bool next (T value)
 
bool has_value () const
 

Protected Attributes

bool has_value_ {false}
 
last_value_ {}
 

Detailed Description

template<typename T>
class esphome::Deduplicator< T >

Definition at line 286 of file helpers.h.

Member Function Documentation

◆ has_value()

template<typename T>
bool esphome::Deduplicator< T >::has_value ( ) const
inline

Definition at line 297 of file helpers.h.

◆ next()

template<typename T>
bool esphome::Deduplicator< T >::next ( value)
inline

Definition at line 288 of file helpers.h.

Field Documentation

◆ has_value_

template<typename T>
bool esphome::Deduplicator< T >::has_value_ {false}
protected

Definition at line 300 of file helpers.h.

◆ last_value_

template<typename T>
T esphome::Deduplicator< T >::last_value_ {}
protected

Definition at line 301 of file helpers.h.


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