INET Framework for OMNeT++/OMNEST
|
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. More... | |
Interpolated (value_type v, bool isIntpl=true) | |
Initializes this Interpolated instance to represent the Mapping the passed pointer points to and with the passed isIntpl value. More... | |
Interpolated (const _Self &o) | |
Copy-constructor which assures that the internal storage is used correctly. More... | |
~Interpolated () | |
const _Self & | operator= (const _Self &o) |
Assignment operator which assures that the internal storage is copied correctly. More... | |
value_ref_type | operator* () |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator). More... | |
value_ptr_type | operator-> () |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator). More... | |
bool | operator== (const _Self &other) const |
Two Interpolated<Mapping*> are compared equal if the pointer to the represented Mapping is the same as well as the "isInterpolated" value. More... | |
bool | operator!= (const _Self &other) const |
Two Interpolated<Mapping*> are compared non equal if the pointer to the represented Mapping differs or the "isInterpolated" value. More... | |
Public Attributes | |
bool | isInterpolated |
Stores if the underlying Mapping is interpolated or not. More... | |
Protected Types | |
typedef Mapping * | value_type |
typedef const value_type & | value_cref_type |
typedef value_type & | value_ref_type |
typedef value_type * | value_ptr_type |
typedef Interpolated< value_type > | _Self |
Protected Attributes | |
LinearIntplMapping | mapping |
Holds the temporary InterpolatedMapping if necessary. More... | |
value_type | value |
A pointer to the Mapping this class represents. More... | |
bool | isPointer |
Stores if we use the temporary IntplMapping or a external pointer. More... | |
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Initializes this Interpolated instance to represent the passed Interpolated Mapping.
Copies the passed Mapping to its internal member. Sets "isInterpolated" to 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.
|
inline |
Copy-constructor which assures that the internal storage is used correctly.
|
inline |
|
inline |
Two Interpolated<Mapping*> are compared non equal if the pointer to the represented Mapping differs or the "isInterpolated" value.
|
inline |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator).
|
inline |
Dereferences this Interpolated to the represented value (works like dereferencing an std::iterator).
|
inline |
Assignment operator which assures that the internal storage is copied correctly.
|
inline |
Two Interpolated<Mapping*> are compared equal if the pointer to the represented Mapping is the same as well as the "isInterpolated" value.
bool inet::physicallayer::Interpolated< Mapping * >::isInterpolated |
Stores if the underlying Mapping is interpolated or not.
|
protected |
Stores if we use the temporary IntplMapping or a external pointer.
|
protected |
Holds the temporary InterpolatedMapping if necessary.
|
protected |
A pointer to the Mapping this class represents.