yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::core::NotifyValue< T > Class Template Reference

A class to manage a value that can be modified and notify when it changes. More...

#include <common.h>

Inheritance diagram for yaze::app::core::NotifyValue< T >:

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

value_
 
bool modified_
 
temp_value_
 

Detailed Description

template<typename T>
class yaze::app::core::NotifyValue< T >

A class to manage a value that can be modified and notify when it changes.

Definition at line 160 of file common.h.

Constructor & Destructor Documentation

◆ NotifyValue() [1/2]

template<typename T >
yaze::app::core::NotifyValue< T >::NotifyValue ( )
inline

Definition at line 162 of file common.h.

◆ NotifyValue() [2/2]

template<typename T >
yaze::app::core::NotifyValue< T >::NotifyValue ( const T & value)
inline

Definition at line 163 of file common.h.

Member Function Documentation

◆ set()

template<typename T >
void yaze::app::core::NotifyValue< T >::set ( const T & value)
inline

◆ get()

◆ mutable_get()

◆ apply_changes()

◆ operator=()

template<typename T >
void yaze::app::core::NotifyValue< T >::operator= ( const T & value)
inline

Definition at line 189 of file common.h.

References yaze::app::core::NotifyValue< T >::set().

Here is the call graph for this function:

◆ operator T()

template<typename T >
yaze::app::core::NotifyValue< T >::operator T ( )
inline

Definition at line 190 of file common.h.

References yaze::app::core::NotifyValue< T >::get().

Here is the call graph for this function:

◆ modified()

template<typename T >
bool yaze::app::core::NotifyValue< T >::modified ( ) const
inline

Member Data Documentation

◆ value_

◆ modified_

◆ temp_value_

template<typename T >
T yaze::app::core::NotifyValue< T >::temp_value_
private

The documentation for this class was generated from the following file: