Public Member Functions

DelayedMapping Class Reference
[mappingDetails - mostly internal mapping classes]

Moves another Mapping in its time dimension. More...

#include <MappingUtils.h>

Inherits BaseDelayedMapping< Mapping >.

Collaboration diagram for DelayedMapping:
Collaboration graph
[legend]

List of all members.

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 Mappingclone () const
 Returns a deep copy of this Mapping.
virtual MappingIteratorcreateIterator ()
 Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it.
virtual MappingIteratorcreateIterator (const Argument &pos)
 Returns a pointer of a new Iterator which is able to iterate over the function and can change it.

Detailed Description

Moves another Mapping in its time dimension.

See propagation delay effect of the signal for an example how to use this mapping.

Author:
Karl Wessel

Definition at line 2282 of file MappingUtils.h.


Member Function Documentation

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);
  }


The documentation for this class was generated from the following file: