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

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

#include <notify.h>

Inheritance diagram for yaze::util::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::util::NotifyValue< T >

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

Definition at line 13 of file notify.h.

Constructor & Destructor Documentation

◆ NotifyValue() [1/2]

template<typename T>
yaze::util::NotifyValue< T >::NotifyValue ( )
inline

Definition at line 15 of file notify.h.

References modified_, temp_value_, and value_.

◆ NotifyValue() [2/2]

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

Definition at line 16 of file notify.h.

References modified_, temp_value_, and value_.

Member Function Documentation

◆ set()

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

Definition at line 19 of file notify.h.

References modified_, and value_.

Referenced by operator=().

◆ get()

template<typename T>
const T & yaze::util::NotifyValue< T >::get ( )
inline

Definition at line 24 of file notify.h.

References modified_, and value_.

Referenced by operator T().

◆ mutable_get()

template<typename T>
T & yaze::util::NotifyValue< T >::mutable_get ( )
inline

Definition at line 29 of file notify.h.

References modified_, temp_value_, and value_.

◆ apply_changes()

template<typename T>
void yaze::util::NotifyValue< T >::apply_changes ( )
inline

Definition at line 35 of file notify.h.

References modified_, temp_value_, and value_.

◆ operator=()

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

Definition at line 42 of file notify.h.

References set().

Here is the call graph for this function:

◆ operator T()

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

Definition at line 43 of file notify.h.

References get().

Here is the call graph for this function:

◆ modified()

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

Definition at line 45 of file notify.h.

References modified_.

Member Data Documentation

◆ value_

template<typename T>
T yaze::util::NotifyValue< T >::value_
private

Definition at line 48 of file notify.h.

Referenced by apply_changes(), get(), mutable_get(), NotifyValue(), NotifyValue(), and set().

◆ modified_

template<typename T>
bool yaze::util::NotifyValue< T >::modified_
private

Definition at line 49 of file notify.h.

Referenced by apply_changes(), get(), modified(), mutable_get(), NotifyValue(), NotifyValue(), and set().

◆ temp_value_

template<typename T>
T yaze::util::NotifyValue< T >::temp_value_
private

Definition at line 50 of file notify.h.

Referenced by apply_changes(), mutable_get(), NotifyValue(), and NotifyValue().


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