ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
A class to manage the relative mapping of a variable with respect to another one. More...
#include <VariableMapping.h>
Public Member Functions | |
VariableMapping (const Variable &relative, const Variable &base) | |
~VariableMapping () | |
const std::vector< int > & | getMapping () const |
const Variable & | getBaseVariable () const |
const Variable & | getRelativeVariable () const |
A class to manage the relative mapping of a variable with respect to another one.
The role of VariableMapping is to provide the relative mapping of one variable v1 wrt. another v2 as it could be directly obtained by invoking v2.getRelativeMappingOf(v1, returnVector). The mapping is updated whenever it is needed (i.e. after an event EVT_RESIZE or EVT_CHANGE_DEPENDENCIES was triggered by one of the two variable).
Definition at line 34 of file VariableMapping.h.
Definition at line 10 of file VariableMapping.cpp.
ocra::VariableMapping::~VariableMapping | ( | ) |
Definition at line 19 of file VariableMapping.cpp.
const Variable & ocra::VariableMapping::getBaseVariable | ( | ) | const |
Definition at line 34 of file VariableMapping.cpp.
const std::vector< int > & ocra::VariableMapping::getMapping | ( | ) | const |
Definition at line 27 of file VariableMapping.cpp.
const Variable & ocra::VariableMapping::getRelativeVariable | ( | ) | const |
Definition at line 39 of file VariableMapping.cpp.