Public Types | Public Member Functions | Public Attributes

gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP > Struct Template Reference

Binary vector expression. More...

#include <VecExprMeta.h>

Collaboration diagram for gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef EXP1_T::DataType DataType

Public Member Functions

 VecBinaryExpr (const EXP1_T &e1, const EXP2_T &e2)
DataType operator[] (const unsigned i) const

Public Attributes

ExprTraits< EXP1_T >::ExprRef Exp1
ExprTraits< EXP2_T >::ExprRef Exp2

Detailed Description

template<typename EXP1_T, typename EXP2_T, typename OP>
struct gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >

Binary vector expression.

Stores the two vector expressions to process.

Definition at line 83 of file VecExprMeta.h.


Member Typedef Documentation

template<typename EXP1_T , typename EXP2_T , typename OP >
typedef EXP1_T::DataType gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >::DataType

Definition at line 85 of file VecExprMeta.h.


Constructor & Destructor Documentation

template<typename EXP1_T , typename EXP2_T , typename OP >
gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >::VecBinaryExpr ( const EXP1_T &  e1,
const EXP2_T &  e2 
) [inline]

Definition at line 90 of file VecExprMeta.h.

: Exp1(e1), Exp2(e2) {;}


Member Function Documentation

template<typename EXP1_T , typename EXP2_T , typename OP >
DataType gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >::operator[] ( const unsigned  i  )  const [inline]

Definition at line 91 of file VecExprMeta.h.

   { return OP::eval(Exp1[i], Exp2[i]); }


Member Data Documentation

template<typename EXP1_T , typename EXP2_T , typename OP >
ExprTraits<EXP1_T>::ExprRef gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >::Exp1

Definition at line 87 of file VecExprMeta.h.

template<typename EXP1_T , typename EXP2_T , typename OP >
ExprTraits<EXP2_T>::ExprRef gmtl::meta::VecBinaryExpr< EXP1_T, EXP2_T, OP >::Exp2

Definition at line 88 of file VecExprMeta.h.


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