iv::DVarManipulator Class Reference

#include <DVarManipulator.hpp>

Public Member Functions

 DVarManipulator (Instance *inst)
 
Instanceinstance ()
 
template<class Type >
void set (DVarIdT< Type > id, Type const &value)
 

Public Attributes

ClientMarker cm
 

Detailed Description

NOTE - context now does not duplicate DVarSystem; this must be done manualy, or maybe I need to think about it and do it better

This instance separates DVar contexts. Children of this instance will use different DVarSystem than parents. Created DVarSystem has pointer to original (parent) DVarSystem so if a value is not explicitly specified in this context, value from parent context (parent DVarSystem) will be used. New context is used by children, DVarManipulator itself uses old (parent) context.

Multiple DVarManipulator instances can be active on one Instance, they should not interfere with each other in any harmful way.

Definition at line 21 of file DVarManipulator.hpp.

Constructor & Destructor Documentation

◆ DVarManipulator()

iv::DVarManipulator::DVarManipulator ( Instance inst)

Definition at line 7 of file DVarManipulator.cpp.

Member Function Documentation

◆ instance()

Instance * iv::DVarManipulator::instance ( )

Definition at line 14 of file DVarManipulator.cpp.

◆ set()

template<class Type >
void iv::DVarManipulator::set ( DVarIdT< Type >  id,
Type const &  value 
)

Definition at line 5 of file DVarManipulator.inl.

Member Data Documentation

◆ cm

ClientMarker iv::DVarManipulator::cm

Definition at line 24 of file DVarManipulator.hpp.


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