Cortex  10.0.0-a4
Public Types | Public Member Functions | Protected Attributes | List of all members
IECore::CompoundDataConversion< C1, C2 > Class Template Reference

#include <CompoundDataConversion.h>

+ Inheritance diagram for IECore::CompoundDataConversion< C1, C2 >:

Public Types

typedef CompoundDataConversion< typename C2::InverseType, typename C1::InverseType > InverseType
 Inverse defined by the equality: (f o g)'(x) = ( g' o f' )(x)
 
- Public Types inherited from IECore::DataConversion< C1::FromType, C2::ToType >
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.
 
- Public Member Functions inherited from IECore::DataConversion< C1::FromType, C2::ToType >
C2::ToType operator() (C1::FromTypef) const
 
InverseType inverse () const
 

Protected Attributes

C1 m_c1
 
C2 m_c2
 

Detailed Description

template<typename C1, typename C2>
class IECore::CompoundDataConversion< C1, 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.


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