Passes through each data series value unchanged.
#include <DataAnalysis/DataStructures/unchangeddataseriesmapper.h>
◆ clone()
- Returns
- A clone of this object.
- Note
- Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.
Implements DataSeriesMapper.
◆ createMementoData()
- Parameters
-
dataSeries | The model that will be used for mapping nodes to values. |
- Returns
- A memento object which client code cannot do anything useful with except pass it around. The memento is ultimately only useful to the getValue() function. It holds internal data the mapper will use to perform the required mapping.
Implements DataSeriesMapper.
◆ getValue()
- Parameters
-
index | The index of the item being mapped. |
srcValue | The value of the source data series at the specified index. |
destValue | The mapped value should be assigned to this before returning. |
mementoData | Must be the same object supplied by a previous call to createMementoData(). |
- Returns
- True if the srcValue could be mapped. If there was some kind of error, false should be returned and the caller should not attempt to continue mapping values.
Implements DataSeriesMapper.