IncreasingValue Filter

template<typename T>
struct IncreasingValue

Filter that only accepts increasing values.

This filter propagates changes only when the new value is strictly greater than the previous value, useful for monitoring upward trends.

Since

v0.1.0

// Example: Only propagate when temperature increases
Signal<float, 10, IncreasingValue<float>> temp(20.0);

Warning

Only accepts arithmetic types (integral and floating-point).

Template Parameters:
typename T

Arithmetic type.

Public Functions

inline bool operator()(const T &old_value, const T &new_value) const

See Also