Moves another Mapping in its time dimension. More...
#include <MappingUtils.h>
Inherits BaseDelayedMapping< Mapping >.
Public Member Functions | |
DelayedMapping (Mapping *mapping, simtime_t delay) | |
virtual void | setValue (const Argument &pos, double value) |
Changes the value of the Mapping at the specified position. | |
virtual Mapping * | clone () const |
Returns a deep copy of this Mapping. | |
virtual MappingIterator * | createIterator () |
Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it. | |
virtual MappingIterator * | createIterator (const Argument &pos) |
Returns a pointer of a new Iterator which is able to iterate over the function and can change it. |
Moves another Mapping in its time dimension.
See propagation delay effect of the signal for an example how to use this mapping.
Definition at line 2282 of file MappingUtils.h.
virtual MappingIterator* DelayedMapping::createIterator | ( | const Argument & | pos | ) | [inline, virtual] |
Returns a pointer of a new Iterator which is able to iterate over the function and can change it.
The iterator starts at the passed position.
Implements Mapping.
Definition at line 2301 of file MappingUtils.h.
References Mapping::createIterator().
{ return new DelayedMappingIterator(mapping->createIterator(delayPosition(pos)), delay); }
virtual void DelayedMapping::setValue | ( | const Argument & | pos, | |
double | value | |||
) | [inline, virtual] |
Changes the value of the Mapping at the specified position.
The complexity of this method depends on the implementation.
Implements Mapping.
Definition at line 2289 of file MappingUtils.h.
References Mapping::setValue().
{ mapping->setValue(delayPosition(pos), value); }