INET Framework for OMNeT++/OMNEST
|
Wraps an ConstMapping into a Mapping interface. More...
#include <MappingUtils.h>
Public Member Functions | |
ConstMappingWrapper (const ConstMapping *m) | |
ConstMappingWrapper (const ConstMappingWrapper &o) | |
virtual | ~ConstMappingWrapper () |
virtual void | setValue (const Argument &, argument_value_cref_t) override |
Changes the value of the Mapping at the specified position. More... | |
virtual MappingIterator * | createIterator () override |
Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it. More... | |
virtual MappingIterator * | createIterator (const Argument &pos) override |
Returns a pointer of a new Iterator which is able to iterate over the function and can change it. More... | |
virtual argument_value_t | getValue (const Argument &pos) const override |
Returns the value of this Mapping at the position specified by the passed Argument. More... | |
virtual ConstMappingIterator * | createConstIterator () const override |
Returns an ConstMappingIterator by use of the respective implementation of the "createIterator()"-method. More... | |
virtual ConstMappingIterator * | createConstIterator (const Argument &pos) const override |
Returns an ConstMappingIterator by use of the respective implementation of the "createIterator()"-method. More... | |
virtual ConstMapping * | constClone () const override |
Returns a deep const copy of this mapping by using the according "clone()"-implementation. More... | |
virtual Mapping * | clone () const override |
Returns a deep copy of this Mapping. More... | |
Public Member Functions inherited from inet::physicallayer::Mapping | |
Mapping & | operator= (const Mapping ©) |
Mapping assignment operator. More... | |
void | swap (Mapping &s) |
Swaps data with another Mapping. More... | |
Mapping (const DimensionSet &dims) | |
Initializes the Mapping with the passed DimensionSet as domain. More... | |
Mapping () | |
Initializes the Mapping with the time dimension as domain. More... | |
Mapping (const Mapping &o) | |
virtual | ~Mapping () |
virtual void | appendValue (const Argument &pos, argument_value_cref_t value) |
Appends the passed value at the passed position to the mapping. More... | |
Public Member Functions inherited from inet::physicallayer::ConstMapping | |
ConstMapping & | operator= (const ConstMapping ©) |
ConstMapping assignment operator. More... | |
void | swap (ConstMapping &s) |
Swaps data with another ConstMapping. More... | |
ConstMapping () | |
Initializes the ConstMapping with a the time dimension as domain. More... | |
ConstMapping (const ConstMapping &o) | |
ConstMapping (const DimensionSet &dimSet) | |
Initializes the ConstMapping with the passed DimensionSet as Domain. More... | |
virtual | ~ConstMapping () |
argument_value_t | operator[] (const Argument &pos) const |
Returns the value of this Mapping at the position specified by the passed Argument. More... | |
const DimensionSet & | getDimensionSet () const |
Returns this Mappings domain as DimensionSet. More... | |
template<class stream > | |
stream & | print (stream &out, argument_value_cref_t lTimeScale=argument_value_t(1), argument_value_cref_t lLeftColScale=Argument::MappedOne, const std::string &sTableHead=std::string("o\\ms"), const Dimension *const pOnlyDim=nullptr) const |
Prints the Mapping to an output stream. More... | |
Protected Attributes | |
const ConstMapping * | mapping |
Protected Attributes inherited from inet::physicallayer::ConstMapping | |
DimensionSet | dimensions |
The dimensions of this mappings domain. More... | |
Private Member Functions | |
ConstMappingWrapper & | operator= (const ConstMappingWrapper &) |
Assignment operator is not allowed. More... | |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::Mapping | |
enum | InterpolationMethod { STEPS, NEAREST, LINEAR } |
Types of interpolation methods for mappings. More... | |
Public Types inherited from inet::physicallayer::ConstMapping | |
typedef Argument::mapped_type | argument_value_t |
typedef Argument::mapped_type_cref | argument_value_cref_t |
Wraps an ConstMapping into a Mapping interface.
Assumes that "setValue()" of the Mapping interface will never be called.
|
inline |
|
inline |
|
inlineoverridevirtual |
Returns a deep copy of this Mapping.
Implements inet::physicallayer::Mapping.
|
inlineoverridevirtual |
Returns a deep const copy of this mapping by using the according "clone()"-implementation.
Reimplemented from inet::physicallayer::Mapping.
|
inlineoverridevirtual |
Returns an ConstMappingIterator by use of the respective implementation of the "createIterator()"-method.
Override this method if your ConstIterator differs from the normal iterator.
Reimplemented from inet::physicallayer::Mapping.
|
inlineoverridevirtual |
Returns an ConstMappingIterator by use of the respective implementation of the "createIterator()"-method.
Override this method if your ConstIterator differs from the normal iterator.
Reimplemented from inet::physicallayer::Mapping.
|
inlineoverridevirtual |
Returns a pointer of a new Iterator which is able to iterate over the Mapping and can change it.
Implements inet::physicallayer::Mapping.
|
inlineoverridevirtual |
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 inet::physicallayer::Mapping.
|
inlineoverridevirtual |
Returns the value of this Mapping at the position specified by the passed Argument.
The complexity of this method depends on the actual implementation.
Implements inet::physicallayer::ConstMapping.
|
private |
Assignment operator is not allowed.
|
inlineoverridevirtual |
Changes the value of the Mapping at the specified position.
The complexity of this method depends on the implementation.
Implements inet::physicallayer::Mapping.
|
protected |