iv::DVar< Type > Class Template Reference
#include <DVar.hpp>
Public Member Functions | |
DVar (Instance *inst, DVarIdT< Type > id=DVarIdT< Type >()) | |
~DVar () | |
Instance * | instance () |
Type | get () |
void | dvar (DVarIdT< Type > id) |
DVarIdT< Type > | dvar () const |
void | on_changed (std::function< void(Type const &newval) > const &, bool call_immediately=false) |
Public Attributes | |
ClientMarker | cm |
Detailed Description
template<class Type>
class iv::DVar< Type >
Used to access DVar value. To be notified about DVar changes, use DVarListener. TODO
- if on_changed is enabled, then allow value caching
- we need to modify DVarSystem so that he gives us value in the callback (void* reinterpret castable to the type - if it is known); posibly send type_index with it too
- possible give this caching to DVarProperty
Constructor & Destructor Documentation
◆ DVar()
◆ ~DVar()
Member Function Documentation
◆ instance()
◆ get()
◆ dvar() [1/2]
◆ dvar() [2/2]
◆ on_changed()
template<class Type >
void iv::DVar< Type >::on_changed | ( | std::function< void(Type const &newval) > const & | fun, |
bool | call_immediately = false |
||
) |
Member Data Documentation
◆ cm
template<class Type >
ClientMarker iv::DVar< Type >::cm |
The documentation for this class was generated from the following files: