A class to manage a value that can be modified and notify when it changes. More...
#include <common.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 |
|
inline |
|
inline |
Definition at line 169 of file common.h.
References yaze::app::core::NotifyValue< T >::modified_, and yaze::app::core::NotifyValue< T >::value_.
Referenced by yaze::app::core::NotifyValue< T >::operator=().
|
inline |
Definition at line 174 of file common.h.
References yaze::app::core::NotifyValue< T >::modified_, and yaze::app::core::NotifyValue< T >::value_.
Referenced by yaze::app::editor::Tile16Editor::DrawTileEditControls(), yaze::app::core::NotifyValue< T >::operator T(), and yaze::app::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 179 of file common.h.
References yaze::app::core::NotifyValue< T >::modified_, yaze::app::core::NotifyValue< T >::temp_value_, and yaze::app::core::NotifyValue< T >::value_.
Referenced by yaze::app::editor::Tile16Editor::DrawTileEditControls(), and yaze::app::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 185 of file common.h.
References yaze::app::core::NotifyValue< T >::modified_, yaze::app::core::NotifyValue< T >::temp_value_, and yaze::app::core::NotifyValue< T >::value_.
Referenced by yaze::app::editor::Tile16Editor::DrawTileEditControls(), and yaze::app::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 192 of file common.h.
References yaze::app::core::NotifyValue< T >::set().
|
inline |
Definition at line 193 of file common.h.
References yaze::app::core::NotifyValue< T >::get().
|
inline |
Definition at line 195 of file common.h.
References yaze::app::core::NotifyValue< T >::modified_.
Referenced by yaze::app::editor::Tile16Editor::DrawTileEditControls(), and yaze::app::editor::Tile16Editor::UpdateBlockset().
|
private |
Definition at line 198 of file common.h.
Referenced by yaze::app::core::NotifyValue< T >::apply_changes(), yaze::app::core::NotifyValue< T >::get(), yaze::app::core::NotifyValue< T >::mutable_get(), and yaze::app::core::NotifyValue< T >::set().
|
private |
|
private |
Definition at line 200 of file common.h.
Referenced by yaze::app::core::NotifyValue< T >::apply_changes(), and yaze::app::core::NotifyValue< T >::mutable_get().