INET Framework for OMNeT++/OMNEST
|
Given two iterators defining a range of key-value-pairs this class provides interpolation of values for an arbitrary key by returning the value of the next smaller entry. More...
#include <Interpolation.h>
Public Member Functions | |
NextSmaller () | |
NextSmaller (mapped_cref_type oorv) | |
virtual | ~NextSmaller () |
virtual interpolated | operator() (const const_iterator &first, const const_iterator &last, key_cref_type pos, const_iterator upperBound) 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... | |
Public Member Functions inherited from inet::physicallayer::InterpolatorBase< _ContainerType > | |
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... | |
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< _ContainerType > | base_class_type |
Additional Inherited Members | |
Public Attributes inherited from inet::physicallayer::InterpolatorBase< _ContainerType > | |
comparator_type | comp |
Comparator for STL functions. More... | |
Protected Member Functions inherited from inet::physicallayer::InterpolatorBase< _ContainerType > | |
interpolated | asInterpolated (mapped_cref_type rVal, bool bIsOutOfRange, bool bIsInterpolated=true) const |
Protected Attributes inherited from inet::physicallayer::InterpolatorBase< _ContainerType > | |
bool | continueOutOfRange |
interpolated | outOfRangeVal |
Given two iterators defining a range of key-value-pairs this class provides interpolation of values for an arbitrary key by returning the value of the next smaller entry.
If there is no smaller entry it returns the next bigger or the "out of range"-value, if set.
|
protected |
typedef base_class_type::comparator_type inet::physicallayer::NextSmaller< _ContainerType >::comparator_type |
typedef base_class_type::const_iterator inet::physicallayer::NextSmaller< _ContainerType >::const_iterator |
typedef base_class_type::container_type inet::physicallayer::NextSmaller< _ContainerType >::container_type |
typedef base_class_type::interpolated inet::physicallayer::NextSmaller< _ContainerType >::interpolated |
typedef base_class_type::iterator inet::physicallayer::NextSmaller< _ContainerType >::iterator |
typedef base_class_type::key_cref_type inet::physicallayer::NextSmaller< _ContainerType >::key_cref_type |
typedef base_class_type::key_type inet::physicallayer::NextSmaller< _ContainerType >::key_type |
typedef base_class_type::mapped_cref_type inet::physicallayer::NextSmaller< _ContainerType >::mapped_cref_type |
typedef base_class_type::mapped_type inet::physicallayer::NextSmaller< _ContainerType >::mapped_type |
typedef base_class_type::pair_type inet::physicallayer::NextSmaller< _ContainerType >::pair_type |
typedef base_class_type::storage_type inet::physicallayer::NextSmaller< _ContainerType >::storage_type |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Represents the interpolator a stepping function.
Reimplemented from inet::physicallayer::InterpolatorBase< _ContainerType >.
|
inlinevirtual |
Functor operator of this class which 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 to 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< _ContainerType >.