SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
Value container that keeps track of its expiration time. More...
#include <sensesp/system/expiring_value.h>
Public Member Functions | |
ExpiringValue () | |
ExpiringValue (T value, unsigned long expiration_duration, T expired_value) | |
void | update (T value) |
T | get () const |
bool | is_expired () const |
Value container that keeps track of its expiration time.
The value is considered expired if the time since the last update is greater than the expiration duration. When expired, the value is replaced with an expiration placeholder value.
T |
Definition at line 16 of file expiring_value.h.
|
inline |
Definition at line 18 of file expiring_value.h.
|
inline |
Definition at line 24 of file expiring_value.h.
|
inline |
|
inline |
|
inline |
Definition at line 30 of file expiring_value.h.