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) |
const T & | get () |
T & | mutable_get () |
void | apply_changes () |
void | operator= (const T &value) |
operator T () | |
bool | modified () const |
Private Attributes | |
T | value_ |
bool | modified_ |
T | temp_value_ |
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 |
Definition at line 24 of file notify.h.
References modified_, and value_.
Referenced by operator T().
|
inline |
Definition at line 29 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
Definition at line 35 of file notify.h.
References modified_, temp_value_, and value_.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 48 of file notify.h.
Referenced by apply_changes(), get(), mutable_get(), NotifyValue(), NotifyValue(), and set().
|
private |
Definition at line 49 of file notify.h.
Referenced by apply_changes(), get(), modified(), mutable_get(), NotifyValue(), NotifyValue(), and set().
|
private |
Definition at line 50 of file notify.h.
Referenced by apply_changes(), mutable_get(), NotifyValue(), and NotifyValue().