nemo::Mapping< InType, OutType > Class Template Reference
A Mapping represents an input-output behavior (for instance a mathematical function) that is defined be a MappingDefinition. More...
#include <Mapping.h>
Public Member Functions | |
Mapping (MappingDefinition< InType, OutType > *defP) | |
Create a mapping from a mapping definition. | |
Mapping () | |
Create a mapping With constant value OutType(). | |
Mapping (const OutType &value) | |
Create a mapping With constant value. | |
Mapping (OutType(*const func)(InType), InType(*const invFunc)(OutType)=NULL) | |
Creates a mapping that evaluates the function that is passed as first argument by a function pointer. | |
template<typename F , typename BoostArgDescription > | |
Mapping (boost::_bi::bind_t< OutType, F, BoostArgDescription > func) | |
Creates a mapping form a boost::bind expression. | |
OutType | operator() (InType value) const |
Evaluate the outcome of the mapping for a given input value. | |
template<typename OtherInType > | |
Mapping< OtherInType, OutType > | operator() (Mapping< OtherInType, InType > m) |
Chain two mappings. | |
IntrusivePtr < MappingDefinition< InType, OutType > > | getDefinition () const |
Return the definition object belonging to this Mapping. | |
Mapping< OutType, InType > | inverse () |
Friends | |
class | Mapping |
Detailed Description
template<class InType, class OutType>
class nemo::Mapping< InType, OutType >
A Mapping represents an input-output behavior (for instance a mathematical function) that is defined be a MappingDefinition.
The Mapping object adds a lot of convenience to the MappingDefinition object. It acts as a "smart pointer" on the MappingDefinition and adds intuitive operator support. A mapping can be evaluated with the round-bracket operator() which corresponds to evaluate() of the mapping definition. Also, you can use mathematical operators like + on mappings (see ExampleMappingArithmetics.cpp).
Definition at line 161 of file Mapping.h.
Constructor & Destructor Documentation
nemo::Mapping< InType, OutType >::Mapping | ( | MappingDefinition< InType, OutType > * | defP | ) | [inline] |
Create a mapping from a mapping definition.
The MappingDefinition object is afterwards owned by the Mapping
nemo::Mapping< InType, OutType >::Mapping | ( | ) | [inline] |
nemo::Mapping< InType, OutType >::Mapping | ( | const OutType & | value | ) | [inline] |
nemo::Mapping< InType, OutType >::Mapping | ( | OutType(*)(InType) | func, | |
InType(*)(OutType) | invFunc = NULL | |||
) | [inline] |
nemo::Mapping< InType, OutType >::Mapping | ( | boost::_bi::bind_t< OutType, F, BoostArgDescription > | func | ) | [inline] |
Member Function Documentation
IntrusivePtr<MappingDefinition<InType,OutType> > nemo::Mapping< InType, OutType >::getDefinition | ( | ) | const [inline] |
Mapping<OutType,InType> nemo::Mapping< InType, OutType >::inverse | ( | ) | [inline] |
Mapping<OtherInType,OutType> nemo::Mapping< InType, OutType >::operator() | ( | Mapping< OtherInType, InType > | m | ) | [inline] |
OutType nemo::Mapping< InType, OutType >::operator() | ( | InType | value | ) | const [inline] |
Friends And Related Function Documentation
friend class Mapping [friend] |
The documentation for this class was generated from the following file:
- nemo/Mapping.h
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by 1.6.3