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 |
Definition at line 15 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
Definition at line 16 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
Definition at line 19 of file notify.h.
References modified_, and value_.
Referenced by operator=().
|
inline |
|
inline |
Definition at line 33 of file notify.h.
References modified_, and value_.
Referenced by operator T().
|
inline |
Definition at line 38 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
Definition at line 44 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
Definition at line 51 of file notify.h.
References modified(), and modified_.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 62 of file notify.h.
Referenced by commit(), edit(), get(), NotifyValue(), NotifyValue(), set(), and set().
|
private |
Definition at line 63 of file notify.h.
Referenced by commit(), edit(), NotifyValue(), and NotifyValue().
|
private |
Definition at line 64 of file notify.h.
Referenced by commit(), consume_modified(), edit(), get(), modified(), NotifyValue(), NotifyValue(), set(), and set().