|
FreePOOMA
2.4.1
|
This evaluator is the one that gets called for a data-parallel expression. More...
#include <Evaluator.h>
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. | |
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.
| Evaluator< MainEvaluatorTag >::Evaluator | ( | ) | [inline] |
Default ctor.
| Evaluator< MainEvaluatorTag >::~Evaluator | ( | ) | [inline] |
Destructor.
| 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.
| 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.
1.7.6.1