Public Types | Public Member Functions | Public Attributes

gmtl::meta::VecUnaryExpr< EXP1_T, OP > Struct Template Reference

Unary vector expression. More...

#include <VecExprMeta.h>

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

List of all members.

Public Types

typedef EXP1_T::DataType DataType

Public Member Functions

 VecUnaryExpr (const EXP1_T &e1)
DataType operator[] (const unsigned i) const

Public Attributes

ExprTraits< EXP1_T >::ExprRef Exp1

Detailed Description

template<typename EXP1_T, typename OP>
struct gmtl::meta::VecUnaryExpr< EXP1_T, OP >

Unary vector expression.

Holds the vector expression and unary operation to apply to it.

Definition at line 99 of file VecExprMeta.h.


Member Typedef Documentation

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

Definition at line 101 of file VecExprMeta.h.


Constructor & Destructor Documentation

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

Definition at line 105 of file VecExprMeta.h.

: Exp1(e1) {;}


Member Function Documentation

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

Definition at line 106 of file VecExprMeta.h.

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


Member Data Documentation

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

Definition at line 103 of file VecExprMeta.h.


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