INET Framework for OMNeT++/OMNEST
|
Defines an iterator for a Mapping which is able to iterate over the Mapping. More...
#include <MappingBase.h>
Public Member Functions | |
MappingIterator () | |
virtual | ~MappingIterator () |
virtual void | setValue (argument_value_cref_t value)=0 |
Changes the value of the Mapping at the current position. More... | |
Public Member Functions inherited from inet::physicallayer::ConstMappingIterator | |
ConstMappingIterator () | |
virtual | ~ConstMappingIterator () |
ConstMappingIterator (const ConstMappingIterator &) | |
Copy constructor. More... | |
ConstMappingIterator & | operator= (const ConstMappingIterator &) |
ConstMappingIterator assignment operator. More... | |
void | swap (ConstMappingIterator &) |
Swaps data with another ConstMappingIterator. More... | |
virtual const Argument & | getNextPosition () const =0 |
Returns the position the next call to "next()" of this Iterator would iterate to. More... | |
virtual void | jumpTo (const Argument &pos)=0 |
Lets the iterator point to the passed position. More... | |
virtual void | jumpToBegin ()=0 |
Lets the iterator point to the begin of the mapping. More... | |
virtual void | iterateTo (const Argument &pos)=0 |
Iterates to the specified position. More... | |
virtual void | next ()=0 |
Iterates to the next position of the Mapping. More... | |
virtual bool | inRange () const =0 |
Returns true if the current position of the iterator is in range of the function. More... | |
virtual bool | hasNext () const =0 |
Returns true if the iterator has a next value it can iterate to on a call to "next()". More... | |
virtual const Argument & | getPosition () const =0 |
Returns the current position of the iterator. More... | |
virtual argument_value_t | getValue () const =0 |
Returns the value of the Mapping at the current position. More... | |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::ConstMappingIterator | |
typedef Argument::mapped_type | argument_value_t |
typedef Argument::mapped_type_cref | argument_value_cref_t |
Defines an iterator for a Mapping which is able to iterate over the Mapping.
See class ConstMapping for details on Mapping iterators.
Implementations of this class are able to change the underlying Mapping at the current position of the iterator with constant complexity.
|
inline |
|
pure virtual |
Changes the value of the Mapping at the current position.
Implementations of this method should provide constant complexity.
Implemented in inet::physicallayer::FilledUpMappingIterator, inet::physicallayer::MultiDimMappingIterator< Interpolator >, inet::physicallayer::MultiDimMappingIterator< Linear >, inet::physicallayer::ConstMappingIteratorWrapper, inet::physicallayer::LinearIntplMappingIterator, and inet::physicallayer::FilteredMappingIterator.
Referenced by inet::physicallayer::MappingUtils::applyElementWiseOperator(), and inet::physicallayer::MultiDimMappingIterator< Linear >::setValue().