INET Framework for OMNeT++/OMNEST
|
Provides an interpolateable iterator for any Container which maps from keys to values which is able to change the underlying Container. More...
#include <Interpolation.h>
Public Member Functions | |
InterpolateableIterator (container_type &cont, const interpolator_type &intpl) | |
virtual | ~InterpolateableIterator () |
void | setValue (mapped_cref_type value) |
: Changes (and adds if necessary) the value for the entry at the current position of the iterator to the passed value More... | |
Public Member Functions inherited from inet::physicallayer::ConstInterpolateableIterator< TInterpolator, TInterpolator::iterator > | |
ConstInterpolateableIterator (const used_iterator &first, const used_iterator &last, const interpolator_type &intpl) | |
Initializes the iterator with the passed Iterators as boundaries. More... | |
virtual | ~ConstInterpolateableIterator () |
bool | operator== (const ConstInterpolateableIterator &other) |
void | jumpTo (key_cref_type pos) |
Moves the iterator to the passed position. More... | |
void | jumpToBegin () |
Moves the iterator to the first element. More... | |
void | iterateTo (key_cref_type pos) |
forward iterates the iterator to the passed position. More... | |
void | next () |
Iterates to the next entry in the underlying data structure. More... | |
key_type | getNextPosition () |
bool | inRange () const |
Returns true if the current position of the iterator is between the position of the first and the last entry of the data structure. More... | |
bool | hasNext () const |
Returns true if the a call of "next()" would increase to the position of an a valid entry of the data structure. More... | |
interpolated | getValue () const |
Returns the interpolated value at the current position of the Iterator. More... | |
interpolated | getNextValue () const |
key_cref_type | getPosition () const |
Returns the current position of the iterator. More... | |
const interpolator_type & | getInterpolator () const |
Protected Types | |
typedef ConstInterpolateableIterator< TInterpolator, typename TInterpolator::iterator > | base_class_type |
typedef base_class_type::container_type | container_type |
typedef container_type::const_iterator | const_iterator |
typedef container_type::iterator | iterator |
typedef base_class_type::interpolator_type | interpolator_type |
typedef base_class_type::key_type | key_type |
typedef base_class_type::key_cref_type | key_cref_type |
typedef base_class_type::mapped_type | mapped_type |
typedef base_class_type::mapped_cref_type | mapped_cref_type |
typedef container_type::value_type | pair_type |
typedef base_class_type::comparator_type | comparator_type |
typedef interpolator_type::interpolated | interpolated |
typedef for the returned Interpolated value of this class. More... | |
Protected Attributes | |
container_type & | cont |
Protected Attributes inherited from inet::physicallayer::ConstInterpolateableIterator< TInterpolator, TInterpolator::iterator > | |
used_iterator | first |
used_iterator | last |
used_iterator | right |
key_type | position |
const interpolator_type & | interpolate |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::ConstInterpolateableIterator< TInterpolator, TInterpolator::iterator > | |
typedef TInterpolator | interpolator_type |
typedef interpolator_type::container_type | container_type |
typedef interpolator_type::key_type | key_type |
typedef interpolator_type::key_cref_type | key_cref_type |
typedef interpolator_type::mapped_type | mapped_type |
typedef interpolator_type::mapped_cref_type | mapped_cref_type |
typedef interpolator_type::pair_type | pair_type |
typedef interpolator_type::iterator | iterator |
typedef interpolator_type::const_iterator | const_iterator |
typedef interpolator_type::comparator_type | comparator_type |
typedef TInterpolator::iterator | used_iterator |
typedef interpolator_type::interpolated | interpolated |
typedef for the returned Interpolated value of this class. More... | |
Provides an interpolateable iterator for any Container which maps from keys to values which is able to change the underlying Container.
The underlying Container has to provide the following things:
See ConstInterpolateableIterator for more details.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
typedef for the returned Interpolated value of this class.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
inlinevirtual |
|
inline |
: Changes (and adds if necessary) the value for the entry at the current position of the iterator to the passed value
Referenced by inet::physicallayer::TimeMappingIterator< Interpolator >::setValue(), inet::physicallayer::FrequencyMappingIterator< Interpolator >::setValue(), and inet::physicallayer::MultiDimMappingIterator< Linear >::setValue().
|
protected |