| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/mapper.h>

Public Member Functions | |
| virtual TARGET_TYPE | map (SOURCE_TYPE sourceValue)=0 |
| virtual TARGET_TYPE | callback (SOURCE_TYPE sourceValue) |
| VRS_TYPEINFO (Mapper, VRS_TEMPLATE_ARGS_2(TARGET_TYPE, SOURCE_TYPE, CallbackR1)) | |
| virtual TARGET_TYPE VRS::Mapper< TARGET_TYPE, SOURCE_TYPE >::map | ( | SOURCE_TYPE | sourceValue | ) | [pure virtual] |
The given source value of type SOURCE_TYPE will be transformed to a target value of type TARGET_TYPE. This abstract method must be implemented by subclasses.
Implemented in VRS::DiscreteMapper< TARGET_TYPE, SOURCE_TYPE >, VRS::IntervalMapper< TARGET_TYPE, SOURCE_TYPE >, and VRS::LinearMapper< TARGET_TYPE, SOURCE_TYPE >.
| virtual TARGET_TYPE VRS::Mapper< TARGET_TYPE, SOURCE_TYPE >::callback | ( | SOURCE_TYPE | sourceValue | ) | [inline, virtual] |
This method redirects the call of the CallbackR1::callback() method to the abstract Mapper::map() method.
Implements VRS::CallbackR1< TARGET_TYPE, SOURCE_TYPE >.
| VRS::Mapper< TARGET_TYPE, SOURCE_TYPE >::VRS_TYPEINFO | ( | Mapper< TARGET_TYPE, SOURCE_TYPE > | , | |
| VRS_TEMPLATE_ARGS_2(TARGET_TYPE, SOURCE_TYPE, CallbackR1) | ||||
| ) |