DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
utl::BinaryOpExpr< OP, TLeft, TRight > Class Template Reference

#include <utlExpression.h>

+ Inheritance diagram for utl::BinaryOpExpr< OP, TLeft, TRight >:
+ Collaboration diagram for utl::BinaryOpExpr< OP, TLeft, TRight >:

Detailed Description

template<typename OP, typename TLeft, typename TRight>
class utl::BinaryOpExpr< OP, TLeft, TRight >

Binary operator expression class.

Definition at line 139 of file utlExpression.h.

Public Types

typedef Superclass::ShapeType ShapeType
 
typedef Superclass::SizeType SizeType
 
typedef Expr< BinaryOpExpr< OP, TLeft, TRight >, typename SuperFloatType< typename TLeft::ValueType, typename TRight::ValueType >::type > Superclass
 
typedef Superclass::ValueType ValueType
 
- Public Types inherited from utl::Expr< BinaryOpExpr< OP, TLeft, TRight >, SuperFloatType< TLeft::ValueType, TRight::ValueType >::type >
typedef SizeType const * ShapeType
 
typedef unsigned int SizeType
 
typedef SuperFloatType< TLeft::ValueType, TRight::ValueType >::type ValueType
 

Public Member Functions

 BinaryOpExpr (const TLeft &lhs, const TRight &rhs)
 
 BinaryOpExpr (const TLeft &&lhs, const TRight &&rhs)
 
 BinaryOpExpr (const BinaryOpExpr &&other)
 
ValueType Eval (int i) const
 
const ShapeType GetShape () const
 
- Public Member Functions inherited from utl::Expr< BinaryOpExpr< OP, TLeft, TRight >, SuperFloatType< TLeft::ValueType, TRight::ValueType >::type >
const BinaryOpExpr< OP, TLeft, TRight > & ConstRef (void) const
 
const ShapeType GetShape () const
 
BinaryOpExpr< OP, TLeft, TRight > & Ref (void)
 

Static Public Member Functions

static SizeType GetDimension ()
 
- Static Public Member Functions inherited from utl::Expr< BinaryOpExpr< OP, TLeft, TRight >, SuperFloatType< TLeft::ValueType, TRight::ValueType >::type >
static SizeType GetDimension ()
 

Public Attributes

const TLeft & m_Left
 
OP m_OP
 
const TRight & m_Right
 

Member Typedef Documentation

template<typename OP , typename TLeft , typename TRight >
typedef Superclass::ShapeType utl::BinaryOpExpr< OP, TLeft, TRight >::ShapeType

Definition at line 145 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
typedef Superclass::SizeType utl::BinaryOpExpr< OP, TLeft, TRight >::SizeType

Definition at line 144 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
typedef Expr<BinaryOpExpr<OP,TLeft,TRight>, typename SuperFloatType<typename TLeft::ValueType, typename TRight::ValueType>::type > utl::BinaryOpExpr< OP, TLeft, TRight >::Superclass

Definition at line 142 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
typedef Superclass::ValueType utl::BinaryOpExpr< OP, TLeft, TRight >::ValueType

Definition at line 143 of file utlExpression.h.

Constructor & Destructor Documentation

template<typename OP , typename TLeft , typename TRight >
utl::BinaryOpExpr< OP, TLeft, TRight >::BinaryOpExpr ( const TLeft &  lhs,
const TRight &  rhs 
)
inline

the two inputs should have the same shape, or at least one is a object of ScalarExpr

Definition at line 152 of file utlExpression.h.

References utlSAException.

template<typename OP , typename TLeft , typename TRight >
utl::BinaryOpExpr< OP, TLeft, TRight >::BinaryOpExpr ( const TLeft &&  lhs,
const TRight &&  rhs 
)
inline

Definition at line 168 of file utlExpression.h.

References utlSAException.

template<typename OP , typename TLeft , typename TRight >
utl::BinaryOpExpr< OP, TLeft, TRight >::BinaryOpExpr ( const BinaryOpExpr< OP, TLeft, TRight > &&  other)
inline

Definition at line 184 of file utlExpression.h.

Member Function Documentation

template<typename OP , typename TLeft , typename TRight >
ValueType utl::BinaryOpExpr< OP, TLeft, TRight >::Eval ( int  i) const
inline

Definition at line 209 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
static SizeType utl::BinaryOpExpr< OP, TLeft, TRight >::GetDimension ( )
inlinestatic

Determined by the non-scalar expression

Definition at line 189 of file utlExpression.h.

References utlSAException.

template<typename OP , typename TLeft , typename TRight >
const ShapeType utl::BinaryOpExpr< OP, TLeft, TRight >::GetShape ( ) const
inline

Determined by the non-scalar expression

Definition at line 201 of file utlExpression.h.

Member Data Documentation

template<typename OP , typename TLeft , typename TRight >
const TLeft& utl::BinaryOpExpr< OP, TLeft, TRight >::m_Left

Definition at line 147 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
OP utl::BinaryOpExpr< OP, TLeft, TRight >::m_OP

Definition at line 149 of file utlExpression.h.

template<typename OP , typename TLeft , typename TRight >
const TRight& utl::BinaryOpExpr< OP, TLeft, TRight >::m_Right

Definition at line 148 of file utlExpression.h.


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