Cortex
10.0.0-a4
|
#include <CompoundDataConversion.h>
Public Types | |
typedef CompoundDataConversion< typename C2::InverseType, typename C1::InverseType > | InverseType |
Inverse defined by the equality: (f o g)'(x) = ( g' o f' )(x) | |
![]() | |
typedef C1::FromType | FromType |
typedef C2::ToType | ToType |
typedef void | InverseType |
The type of the converter that can perform the inverse transformation. | |
typedef boost::false_type | IsIdentity |
Public Member Functions | |
BOOST_STATIC_ASSERT ((boost::is_same< typename C1::ToType, typename C2::FromType >::value)) | |
These two types must be the same, so that the function composition works. | |
CompoundDataConversion () | |
Instantiate a conversion using the default constructors for C1 and C2. | |
CompoundDataConversion (const C1 &c1, const C2 &c2) | |
Instantiate a conversion using given instances of C1 and C2. | |
CompoundDataConversion< C1, C2 >::ToType | operator() (typename CompoundDataConversion< C1, C2 >::FromType f) const |
Perform the conversion. | |
InverseType | inverse () const |
Returns an instance of a class able to perform the inverse conversion. | |
![]() | |
C2::ToType | operator() (C1::FromTypef) const |
InverseType | inverse () const |
Protected Attributes | |
C1 | m_c1 |
C2 | m_c2 |
Performs the conversion "to = C2(C1(from))". Note that the functions are applied in the same order as specified in the template argument list.