|
i6engine
1.0
|
#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/AutoUpdater.h>
Public Member Functions | |
| AutoUpdater () | |
| default constructor More... | |
| AutoUpdater (const T &value) | |
| Constructor for a new AutoUpdate variable. More... | |
| void | registerUpdate (const std::function< void(T)> &func) |
| Registers a callback for autoUpdate being called on every change of the value. More... | |
| T | get () const |
| Getter for the value. More... | |
| void | set (const T &val) |
| Setter for the value. More... | |
| T & | operator= (const T &val) |
| assignment operator More... | |
| AutoUpdater< T > & | operator+= (const T &val) |
| += operator More... | |
| AutoUpdater< T > & | operator-= (const T &val) |
| -= operator More... | |
| AutoUpdater< T > & | operator*= (const T &val) |
| *= operator More... | |
| AutoUpdater< T > & | operator/= (const T &val) |
| /= operator More... | |
| operator T () const | |
| returns value as the datatype it really is More... | |
| T | operator++ () |
| T | operator++ (int) |
Definition at line 38 of file AutoUpdater.h.
|
inline |
default constructor
Definition at line 43 of file AutoUpdater.h.
|
inline |
Constructor for a new AutoUpdate variable.
| value | initial value of this variable. |
Definition at line 50 of file AutoUpdater.h.
|
inline |
|
inline |
returns value as the datatype it really is
Definition at line 123 of file AutoUpdater.h.
|
inline |
*= operator
Definition at line 107 of file AutoUpdater.h.
|
inline |
doesn't return another AutoUpdater, but the old value of the AutoUpdater!
Definition at line 130 of file AutoUpdater.h.
|
inline |
Definition at line 135 of file AutoUpdater.h.
|
inline |
+= operator
Definition at line 91 of file AutoUpdater.h.
|
inline |
-= operator
Definition at line 99 of file AutoUpdater.h.
|
inline |
/= operator
Definition at line 115 of file AutoUpdater.h.
|
inline |
assignment operator
Definition at line 83 of file AutoUpdater.h.
|
inline |
Registers a callback for autoUpdate being called on every change of the value.
| func | function to be called when the variable changes |
Definition at line 57 of file AutoUpdater.h.
|
inline |