INET Framework for OMNeT++/OMNEST
|
Specialization of the Linear-template which provides LinearInterpolation for pointer two Mappings. More...
#include <MappingUtils.h>
Public Member Functions | |
Linear () | |
Linear (mapped_cref_type oorv) | |
Linear (const _Self &o) | |
virtual | ~Linear () |
virtual interpolated | operator() (const const_iterator &first, const const_iterator &last, key_cref_type pos, const_iterator upperBound) const override |
Functor operator of this class which linear interpolates the value at the passed position using the values between the passed Iterators. More... | |
Public Member Functions inherited from inet::physicallayer::InterpolatorBase< std::map< Argument::mapped_type, Mapping * > > | |
InterpolatorBase () | |
InterpolatorBase (mapped_cref_type oorv) | |
virtual | ~InterpolatorBase () |
bool | continueAtOutOfRange (void) const |
interpolated | operator() (const const_iterator &first, const const_iterator &last, key_cref_type pos) const |
Functor operator of this class which interpolates the value at the passed position using the values between the passed Iterators. More... | |
virtual bool | isStepping () const |
Represents the interpolator a stepping function. More... | |
void | setOutOfRangeVal (mapped_cref_type oorv) |
Getter and Setter method for out of range value. More... | |
mapped_cref_type | getOutOfRangeVal (void) const |
Protected Types | |
typedef InterpolatorBase< std::map< Argument::mapped_type, Mapping * > > | base_class_type |
typedef Linear< std::map< Argument::mapped_type, Mapping * > > | _Self |
Static Protected Member Functions | |
static ConstMapping::argument_value_t | linearInterpolationFactor (key_cref_type t, key_cref_type t0, key_cref_type t1) |
calculates the linear interpolation factor used for the created LinearIntplMappings. More... | |
Additional Inherited Members | |
Public Attributes inherited from inet::physicallayer::InterpolatorBase< std::map< Argument::mapped_type, Mapping * > > | |
comparator_type | comp |
Comparator for STL functions. More... | |
Protected Member Functions inherited from inet::physicallayer::InterpolatorBase< std::map< Argument::mapped_type, Mapping * > > | |
interpolated | asInterpolated (mapped_cref_type rVal, bool bIsOutOfRange, bool bIsInterpolated=true) const |
Protected Attributes inherited from inet::physicallayer::InterpolatorBase< std::map< Argument::mapped_type, Mapping * > > | |
bool | continueOutOfRange |
interpolated | outOfRangeVal |
Specialization of the Linear-template which provides LinearInterpolation for pointer two Mappings.
Used by MultiDimMapping.
|
protected |
|
protected |
typedef base_class_type::comparator_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::comparator_type |
typedef base_class_type::const_iterator inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::const_iterator |
typedef base_class_type::container_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::container_type |
typedef base_class_type::interpolated inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::interpolated |
typedef base_class_type::iterator inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::iterator |
typedef base_class_type::key_cref_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::key_cref_type |
typedef base_class_type::key_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::key_type |
typedef base_class_type::mapped_cref_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::mapped_cref_type |
typedef base_class_type::mapped_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::mapped_type |
typedef base_class_type::pair_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::pair_type |
typedef base_class_type::storage_type inet::physicallayer::Linear< std::map< Argument::mapped_type, Mapping * > >::storage_type |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinestaticprotected |
|
inlineoverridevirtual |
Functor operator of this class which linear interpolates the value at the passed position using the values between the passed Iterators.
The upperBound-iterator has to point two the entry next bigger as the passed position to interpolate.
The returned instance of interpolated represents the result. Which can be either an actual entry of the interpolated map (if the position two interpolate was exactly that. Or it can be an interpolated value, if the passed position was between two entries of the map. This state can be retrieved with the "isInterpolated"-Member of the returned "interpolated".
Implements inet::physicallayer::InterpolatorBase< std::map< Argument::mapped_type, Mapping * > >.