A class to manage a value that can be modified and notify when it changes. More...
#include <notify.h>
Public Member Functions | |
NotifyValue () | |
NotifyValue (const T &value) | |
void | set (const T &value) |
void | set (T &&value) |
const T & | get () |
T & | edit () |
void | commit () |
bool | consume_modified () |
operator T () | |
void | operator= (const T &value) |
bool | modified () const |
Private Attributes | |
T | value_ |
T | temp_value_ |
bool | modified_ |
A class to manage a value that can be modified and notify when it changes.
|
inline |
|
inline |
|
inline |
Definition at line 19 of file notify.h.
References yaze::util::NotifyValue< T >::modified_, and yaze::util::NotifyValue< T >::value_.
Referenced by yaze::util::NotifyValue< T >::operator=().
|
inline |
Definition at line 26 of file notify.h.
References yaze::util::NotifyValue< T >::modified_, and yaze::util::NotifyValue< T >::value_.
|
inline |
Definition at line 33 of file notify.h.
References yaze::util::NotifyValue< T >::modified_, and yaze::util::NotifyValue< T >::value_.
Referenced by yaze::util::NotifyValue< T >::operator T().
|
inline |
Definition at line 38 of file notify.h.
References yaze::util::NotifyValue< T >::modified_, yaze::util::NotifyValue< T >::temp_value_, and yaze::util::NotifyValue< T >::value_.
|
inline |
Definition at line 44 of file notify.h.
References yaze::util::NotifyValue< T >::modified_, yaze::util::NotifyValue< T >::temp_value_, and yaze::util::NotifyValue< T >::value_.
|
inline |
Definition at line 51 of file notify.h.
References yaze::util::NotifyValue< T >::modified(), and yaze::util::NotifyValue< T >::modified_.
|
inline |
Definition at line 57 of file notify.h.
References yaze::util::NotifyValue< T >::get().
|
inline |
Definition at line 58 of file notify.h.
References yaze::util::NotifyValue< T >::set().
|
inline |
Definition at line 59 of file notify.h.
References yaze::util::NotifyValue< T >::modified_.
Referenced by yaze::util::NotifyValue< T >::consume_modified().
|
private |
Definition at line 62 of file notify.h.
Referenced by yaze::util::NotifyValue< T >::commit(), yaze::util::NotifyValue< T >::edit(), yaze::util::NotifyValue< T >::get(), yaze::util::NotifyValue< T >::set(), and yaze::util::NotifyValue< T >::set().
|
private |
Definition at line 63 of file notify.h.
Referenced by yaze::util::NotifyValue< T >::commit(), and yaze::util::NotifyValue< T >::edit().
|
private |
Definition at line 64 of file notify.h.
Referenced by yaze::util::NotifyValue< T >::commit(), yaze::util::NotifyValue< T >::consume_modified(), yaze::util::NotifyValue< T >::edit(), yaze::util::NotifyValue< T >::get(), yaze::util::NotifyValue< T >::modified(), yaze::util::NotifyValue< T >::set(), and yaze::util::NotifyValue< T >::set().