Evaluator< MainEvaluatorTag > Struct Template Reference

This evaluator is the one that gets called for a data-parallel expression. More...

#include <Evaluator.h>

List of all members.

Public Member Functions

 Evaluator ()
 Default ctor.
 ~Evaluator ()
 Destructor.
template<class LHS , class RHS , class Op >
void evaluate (const LHS &lhs, const Op &op, const RHS &rhs) const
 evaluate(expression) Input an expression and cause it to be evaluated.
template<class LHS , class RHS , class Op >
void evaluateZeroBased (const LHS &lhs, const Op &op, const RHS &rhs) const
 evaluateZeroBased(expression) Input an expression and cause it to be evaluated.


Detailed Description

template<>
struct Evaluator< MainEvaluatorTag >

This evaluator is the one that gets called for a data-parallel expression.

It just determines the appropriate evaluator from the types of the LHS and RHS. Also, we block if appropriate.


Constructor & Destructor Documentation

Evaluator< MainEvaluatorTag >::Evaluator (  )  [inline]

Default ctor.

Evaluator< MainEvaluatorTag >::~Evaluator (  )  [inline]

Destructor.


Member Function Documentation

template<class LHS , class RHS , class Op >
void Evaluator< MainEvaluatorTag >::evaluate ( const LHS &  lhs,
const Op &  op,
const RHS &  rhs 
) const [inline]

evaluate(expression) Input an expression and cause it to be evaluated.

We just pass the buck to a special evaluator.

References Pooma::beginExpression(), Pooma::endExpression(), notifyEngineWrite(), and POOMA_INCREMENT_STATISTIC.

template<class LHS , class RHS , class Op >
void Evaluator< MainEvaluatorTag >::evaluateZeroBased ( const LHS &  lhs,
const Op &  op,
const RHS &  rhs 
) const [inline]

evaluateZeroBased(expression) Input an expression and cause it to be evaluated.

We just pass the buck to a special evaluator. This version does not bother to take views of the expression since the caller is assuring us they are already zero-based.

References Pooma::beginExpression(), Pooma::endExpression(), notifyEngineWrite(), and POOMA_INCREMENT_STATISTIC.


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

Generated on Wed Mar 16 06:20:10 2011 for FreePOOMA by  doxygen 1.5.9