Helper class (-specialization) for multiDimMapping which is used by an InterpolateableMap as return value of the "getValue()" - method. More...
#include <MappingUtils.h>
Public Member Functions | |
Interpolated (const LinearIntplMapping &m) | |
Initializes this Interpolated instance to represent the passed Interpolated Mapping. Copies the passed Mapping to its internal member. Sets "isInterpolated" to true. | |
Interpolated (Mapping *m, bool isIntpl=true) | |
Initializes this Interpolated instance to represent the Mapping the passed pointer points to and with the passed isIntpl value. | |
Interpolated (const Interpolated< Mapping * > &o) | |
Copy-constructor which assures that the internal storage is used correctly. | |
const Interpolated< Mapping * > & | operator= (const Interpolated< Mapping * > &o) |
Assignment operator which assures that the internal storage is copied correctly. | |
Mapping *& | operator* () |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator). | |
Mapping ** | operator-> () |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator). | |
bool | operator== (const Interpolated< Mapping * > &other) |
Two Interpolated<Mapping*> are compared equal if the pointer to the represented Mapping is the same as well as the "isInterpolated" value. | |
bool | operator!= (const Interpolated< Mapping * > &other) |
Two Interpolated<Mapping*> are compared non equal if the pointer to the represented Mapping differs or the "isInterpolated" value. | |
Public Attributes | |
bool | isInterpolated |
Stores if the underlying Mapping is interpolated or not. | |
Protected Attributes | |
LinearIntplMapping | mapping |
Holds the temporary InterpolatedMapping if necessary. | |
Mapping * | value |
A pointer to the Mapping this class represents. | |
bool | isPointer |
Stores if we use the temporary IntplMapping or a external pointer. |
Helper class (-specialization) for multiDimMapping which is used by an InterpolateableMap as return value of the "getValue()" - method.
Provides either an pointer to an actual SubMapping of the MultiDimMapping or a Pointer to an temporary InterpolatedMapping between two Sub-mappings of the MultiDimMapping.
Definition at line 564 of file MappingUtils.h.
Interpolated< Mapping * >::Interpolated | ( | Mapping * | m, | |
bool | isIntpl = true | |||
) | [inline] |
Initializes this Interpolated instance to represent the Mapping the passed pointer points to and with the passed isIntpl value.
The passed pointer has to be valid as long as this instance exists.
Definition at line 596 of file MappingUtils.h.
: mapping(), value(m), isPointer(true), isInterpolated(isIntpl) {}