|
INET Framework for OMNeT++/OMNEST
|
MappingIterator implementation for FilledUpMappings. More...
#include <MappingUtils.h>
Public Member Functions | |
| FilledUpMappingIterator (FilledUpMapping &mapping) | |
| FilledUpMappingIterator (FilledUpMapping &mapping, const Argument &pos) | |
| virtual void | setValue (argument_value_cref_t) override |
| Changes the value of the function at the current position. More... | |
Public Member Functions inherited from inet::physicallayer::MultiDimMappingIterator< Linear > | |
| MultiDimMappingIterator (MultiDimMapping< Linear > &pMapping) | |
| Initializes the Iterator for the passed MultiDimMapping and sets its position two the first entry of the passed MultiDimMapping. More... | |
| MultiDimMappingIterator (MultiDimMapping< Linear > &pMapping, const Argument &pos) | |
| Intializes the Iterator for the passed MultiDimMapping and sets its position two the passed position. More... | |
| MultiDimMappingIterator (const MultiDimMappingIterator &o) | |
| virtual | ~MultiDimMappingIterator () |
| Frees the memory allocated for the sub mappings. More... | |
| void | jumpTo (const Argument &pos) override |
| Lets the iterator point to the passed position. More... | |
| void | iterateTo (const Argument &pos) override |
| Iterates to the specified position. More... | |
| virtual void | next () override |
| Iterates to the next position of the function. More... | |
| virtual bool | inRange () const override |
| Returns true if the current position of the iterator is in range of the function. More... | |
| virtual const Argument & | getPosition () const override |
| Returns the current position of the iterator. More... | |
| virtual const Argument & | getNextPosition () const override |
| returns the next position a call to "next()" would jump to. More... | |
| virtual argument_value_t | getValue () const override |
| Returns the value of the underlying mapping at the current position. More... | |
| virtual void | jumpToBegin () override |
| Lets the iterator point to the begin of the function. More... | |
| virtual bool | hasNext () const override |
| Returns true if the iterator has a valid next value a call to "next()" could jump to. More... | |
Public Member Functions inherited from inet::physicallayer::MappingIterator | |
| MappingIterator () | |
| virtual | ~MappingIterator () |
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... | |
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 |
Protected Types inherited from inet::physicallayer::MultiDimMappingIterator< Linear > | |
| typedef InterpolateableMap< Linear< std::map< argument_value_t, Mapping * > > > | interpolator_map_type |
| The templated InterpolateableMap the underlying Mapping uses std::map as storage type. More... | |
| typedef interpolator_map_type::interpolated | interpolated |
| typedef interpolator_map_type::iterator_intpl | iterator |
| typedef interpolator_map_type::const_iterator_intpl | const_iterator |
Protected Member Functions inherited from inet::physicallayer::MultiDimMappingIterator< Linear > | |
| void | updateSubIterator (const Argument &pos) |
| Helper method which updates the sub-iterator for the passed position. More... | |
| void | updateSubIterator () |
| Helper method which updates the sub-iterator and sets the position of the sub-iterator to its beginning. More... | |
| void | updateNextPosition () |
| Helper method which updates the nextPosition member. More... | |
Protected Attributes inherited from inet::physicallayer::MultiDimMappingIterator< Linear > | |
| const MultiDimMapping< Linear > & | mapping |
| The MultiDimmapping to iterate over. More... | |
| iterator | valueIt |
| Iterator storing the current position inside the underlying Mappings sub-mapping map. More... | |
| interpolated | subMapping |
| The sub-mapping of the sub-mapping map at the current position. More... | |
| MappingIterator * | subIterator |
| An iterator for the sub-mapping which points two the current position in the next dimensions. More... | |
| Argument | position |
| The current position in every Dimension of this Iterator. More... | |
| Argument | nextPosition |
| The position a call to "next()" would jump to. More... | |
MappingIterator implementation for FilledUpMappings.
Assures that although FilledUpMapping is an Mapping instance the "setValue()"-method may never be called.
| inet::physicallayer::FilledUpMappingIterator::FilledUpMappingIterator | ( | FilledUpMapping & | mapping | ) |
| inet::physicallayer::FilledUpMappingIterator::FilledUpMappingIterator | ( | FilledUpMapping & | mapping, |
| const Argument & | pos | ||
| ) |
|
inlineoverridevirtual |
Changes the value of the function at the current position.
Constant complexity.
Reimplemented from inet::physicallayer::MultiDimMappingIterator< Linear >.