|
|
template<typename... I> |
| constexpr | value_with_history (I &&... initial) |
| | Initialized the individual revisions of this value.
|
| |
|
auto | values () const noexcept -> const value_with_history_storage< T, N > & |
| | Returns a reference to the value storage.
|
| |
| auto | get () const noexcept |
| | Returns the current revision of the value. More...
|
| |
| auto | value () const noexcept |
| | Returns the current revision of the value. More...
|
| |
| auto | old_value () const noexcept |
| | Returns the previous revision of the value. More...
|
| |
| auto | value (bool old) const noexcept |
| | Returns the current or previous revision of the value. More...
|
| |
| | operator T () const noexcept |
| | Returns the current revision of the value. More...
|
| |
|
auto | delta () const noexcept |
| | Returns the difference between the current and the previous revision.
|
| |
|
auto | deltas () const noexcept |
| | Returns the differences between the adjacent revisions.
|
| |
|
auto | distance () const noexcept |
| | Returns the distance between the current and the previous revisions.
|
| |
|
auto | changed () const noexcept -> bool |
| | Indicates if the current and previous revisions differ.
|
| |
|
template<typename U > |
| auto | as () const |
| | Returns this with the values cast to new type U.
|
| |
| void | sync () |
| | Synchronize the historic revisions to the current value. More...
|
| |
template<typename T, std::size_t N>
class eagine::value_with_history< T, N >
Class for read-only values with history.
- Template Parameters
-
| T | the type of the value |
| N | the number of latest historical revisions of the stored value. |