Class tracking the changes in a potentially transformed value. More...
#include <eagine/value_tracker.hpp>
Public Member Functions | |
| value_change_tracker () noexcept=default | |
| Default constructor. | |
| value_change_tracker (T initial) noexcept | |
| Constructor setting the initial value. | |
| value_change_tracker (T initial, Transform transf) noexcept | |
| Constructor setting the initial value and the transform. | |
| auto | transform (const T &value) noexcept |
| Transforms the specified value. | |
| auto | get () const noexcept -> const T & |
| Returns the currently stored value. | |
| auto | has_changed (const T &next) noexcept -> bool |
| If the transformed current and values are different, stores next. | |
Class tracking the changes in a potentially transformed value.