Wraps an ConstMappingIterator into a MappingIterator interface.
More...
#include <MappingUtils.h>
Wraps an ConstMappingIterator into a MappingIterator interface.
Assumes that "setValue()" of the MappingIterator interface will never be called.
- Author
- Karl Wessel
Copy constructor is not allowed.
inet::physicallayer::ConstMappingIteratorWrapper::ConstMappingIteratorWrapper |
( |
ConstMappingIterator * |
it | ) |
|
|
inline |
MappingIterator()
Definition: MappingBase.h:1221
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual inet::physicallayer::ConstMappingIteratorWrapper::~ConstMappingIteratorWrapper |
( |
| ) |
|
|
inlinevirtual |
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual const Argument& inet::physicallayer::ConstMappingIteratorWrapper::getNextPosition |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the position the next call to "next()" of this Iterator would iterate to.
Implements inet::physicallayer::ConstMappingIterator.
virtual const Argument & getNextPosition() const =0
Returns the position the next call to "next()" of this Iterator would iterate to. ...
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual const Argument& inet::physicallayer::ConstMappingIteratorWrapper::getPosition |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the current position of the iterator.
Implements inet::physicallayer::ConstMappingIterator.
virtual const Argument & getPosition() const =0
Returns the current position of the iterator.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual argument_value_t inet::physicallayer::ConstMappingIteratorWrapper::getValue |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the value of the Mapping at the current position.
The complexity of this method should be constant for every implementation.
Implements inet::physicallayer::ConstMappingIterator.
virtual argument_value_t getValue() const =0
Returns the value of the Mapping at the current position.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual bool inet::physicallayer::ConstMappingIteratorWrapper::hasNext |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns true if the iterator has a next value it can iterate to on a call to "next()".
Implements inet::physicallayer::ConstMappingIterator.
virtual bool hasNext() const =0
Returns true if the iterator has a next value it can iterate to on a call to "next()".
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual bool inet::physicallayer::ConstMappingIteratorWrapper::inRange |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns true if the current position of the iterator is in range of the function.
This method should be used as end-condition when iterating over the function with the "next()" method.
Implements inet::physicallayer::ConstMappingIterator.
virtual bool inRange() const =0
Returns true if the current position of the iterator is in range of the function. ...
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual void inet::physicallayer::ConstMappingIteratorWrapper::iterateTo |
( |
const Argument & |
pos | ) |
|
|
inlineoverridevirtual |
Iterates to the specified position.
This method should be used if the new position is near the current position. Furthermore the new position has to be compared bigger than the old position.
Implements inet::physicallayer::ConstMappingIterator.
virtual void iterateTo(const Argument &pos)=0
Iterates to the specified position.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual void inet::physicallayer::ConstMappingIteratorWrapper::jumpTo |
( |
const Argument & |
pos | ) |
|
|
inlineoverridevirtual |
Lets the iterator point to the passed position.
The passed new position can be at arbitrary places.
Implements inet::physicallayer::ConstMappingIterator.
virtual void jumpTo(const Argument &pos)=0
Lets the iterator point to the passed position.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual void inet::physicallayer::ConstMappingIteratorWrapper::jumpToBegin |
( |
| ) |
|
|
inlineoverridevirtual |
Lets the iterator point to the begin of the mapping.
The beginning of the mapping depends on the implementation. With an implementation based on a number of key-entries, this could be the key entry with the smallest position (see class Argument for ordering of positions).
Implements inet::physicallayer::ConstMappingIterator.
virtual void jumpToBegin()=0
Lets the iterator point to the begin of the mapping.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
virtual void inet::physicallayer::ConstMappingIteratorWrapper::next |
( |
| ) |
|
|
inlineoverridevirtual |
Iterates to the next position of the Mapping.
The next position depends on the implementation of the Mapping. With an implementation based on a number of key-entries this probably would be the next bigger key-entry.
Implements inet::physicallayer::ConstMappingIterator.
virtual void next()=0
Iterates to the next position of the Mapping.
ConstMappingIterator *const iterator
Definition: MappingUtils.h:1265
Assignment operator is not allowed.
The documentation for this class was generated from the following file: