|
INET Framework for OMNeT++/OMNEST
|
Defines it values by concatenating one or more Mappings to a reference Mapping. More...
#include <MappingUtils.h>
Public Member Functions | |
| ConcatConstMapping (const ConcatConstMapping &o) | |
| ConcatConstMapping & | operator= (const ConcatConstMapping ©) |
| ConcatConstMapping assignment operator. More... | |
| void | swap (ConcatConstMapping &s) |
| Swaps data with another ConcatConstMapping. More... | |
| template<class Iterator > | |
| ConcatConstMapping (ConstMapping *refMapping, Iterator first, Iterator last, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=Argument::MappedZero, Operator op=Operator()) | |
| Initializes with the passed reference Mapping, the operator and the Mappings defined by the passed iterator. More... | |
| ConcatConstMapping (ConstMapping *refMapping, ConstMapping *other, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=Argument::MappedZero, Operator op=Operator()) | |
| Initializes with the passed reference Mapping, the operator and another Mapping to concatenate. More... | |
| virtual | ~ConcatConstMapping () |
| void | addMapping (ConstMapping *m) |
| Adds another Mapping to the list of Mappings to concatenate. More... | |
| virtual Argument::mapped_type | getValue (const Argument &pos) const override |
| Returns the value of this Mapping at the position specified by the passed Argument. More... | |
| Mapping * | createConcatenatedMapping () const |
| Returns the concatenated Mapping. More... | |
| virtual ConstMappingIterator * | createConstIterator () const override |
| Returns a pointer of a new Iterator which is able to iterate over this Mapping. More... | |
| virtual ConstMappingIterator * | createConstIterator (const Argument &pos) const override |
| Returns a pointer of a new Iterator which is able to iterate over the function. More... | |
| virtual ConstMapping * | constClone () const override |
| returns a deep copy of this mapping instance. More... | |
| ConstMapping * | getRefMapping () |
| Returns the pointer to the reference 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 Types | |
| typedef std::pair< Dimension, Argument::const_iterator > | DimIteratorPair |
| typedef std::list< ConstMapping * > | MappingSet |
Protected Attributes | |
| MappingSet | mappings |
| ConstMapping * | refMapping |
| bool | continueOutOfRange |
| Argument::mapped_type | oorValue |
| Operator | op |
Protected Attributes inherited from inet::physicallayer::ConstMapping | |
| DimensionSet | dimensions |
| The dimensions of this mappings domain. More... | |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::ConstMapping | |
| typedef Argument::mapped_type | argument_value_t |
| typedef Argument::mapped_type_cref | argument_value_cref_t |
Defines it values by concatenating one or more Mappings to a reference Mapping.
|
protected |
|
protected |
|
inline |
|
inline |
Initializes with the passed reference Mapping, the operator and the Mappings defined by the passed iterator.
|
inline |
Initializes with the passed reference Mapping, the operator and another Mapping to concatenate.
|
inlinevirtual |
|
inline |
Adds another Mapping to the list of Mappings to concatenate.
|
inlineoverridevirtual |
returns a deep copy of this mapping instance.
Implements inet::physicallayer::ConstMapping.
|
inline |
Returns the concatenated Mapping.
|
inlineoverridevirtual |
Returns a pointer of a new Iterator which is able to iterate over this Mapping.
See class ConstIterator for details.
Implements inet::physicallayer::ConstMapping.
|
inlineoverridevirtual |
Returns a pointer of a new Iterator which is able to iterate over the function.
The iterator starts at the passed position.
See class ConstIterator for details.
Implements inet::physicallayer::ConstMapping.
|
inline |
Returns the pointer to the reference 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.
|
inline |
ConcatConstMapping assignment operator.
| copy | A ConcatConstMapping of identical element and allocator types. |
All the elements of copy are copied.
|
inline |
Swaps data with another ConcatConstMapping.
| s | A ConcatConstMapping of the same element and allocator types. |
This exchanges the elements between two ConcatConstMapping's in constant time. Note that the global std::swap() function is specialized such that std::swap(s1,s2) will feed to this function.
|
protected |
Referenced by inet::physicallayer::ConcatConstMapping< Operator >::swap().
|
protected |
Referenced by inet::physicallayer::ConcatConstMapping< Operator >::swap().
|
protected |
Referenced by inet::physicallayer::ConcatConstMapping< Operator >::swap().
|
protected |
Referenced by inet::physicallayer::ConcatConstMapping< Operator >::swap().
|
protected |
Referenced by inet::physicallayer::ConcatConstMapping< Operator >::swap().