Sundance::EvalManager Class Reference

Inheritance diagram for Sundance::EvalManager:


List of all members.

Public Member Functions

 EvalManager ()
void evalCoordExpr (const CoordExpr *expr, RCP< EvalVector > &result) const
void evalCellDiameterExpr (const CellDiameterExpr *expr, RCP< EvalVector > &result) const
void evalCurveNormExpr (const CurveNormExpr *expr, RCP< EvalVector > &result) const
void evalCellVectorExpr (const CellVectorExpr *expr, RCP< EvalVector > &result) const
void evalDiscreteFuncElement (const DiscreteFuncElement *expr, const Array< MultiIndex > &mi, Array< RCP< EvalVector > > &result) const
void showResults (std::ostream &os, const RCP< SparsitySuperset > &sparsity, const Array< RCP< EvalVector > > &vecResults, const Array< double > &constantResults) const
void setMediator (const RCP< AbstractEvalMediator > &med)
void setVerb (int verb)
int verb () const
void setVecSize (int vecSize)
const AbstractEvalMediatormediator () const
void setRegion (const EvalContext &region)
const EvalContextgetRegion () const
int getMaxDiffOrder () const
RCP< EvalVectorpopVector () const
 TEUCHOS_TIMER (coordEvalTimer,"coord function evaluation")
 TEUCHOS_TIMER (discFuncEvalTimer,"discrete function evaluation")

Static Public Member Functions

static TempStackstack ()

Private Attributes

int verb_
EvalContext region_
RCP< AbstractEvalMediatormediator_

Detailed Description

EvalManager provides methods for interfacing to the framework through an AbstractEvalMediator and managing temporary variables through a TempStack.

If no mediator is set, std::string evaluations will be done

Definition at line 56 of file SundanceEvalManager.hpp.

Constructor & Destructor Documentation

EvalManager::EvalManager (  ) 

Empty ctor

Definition at line 48 of file SundanceEvalManager.cpp.

Member Function Documentation

void EvalManager::evalCellDiameterExpr ( const CellDiameterExpr expr,
RCP< EvalVector > &  result 
) const

void EvalManager::evalCellVectorExpr ( const CellVectorExpr expr,
RCP< EvalVector > &  result 
) const

void EvalManager::evalCoordExpr ( const CoordExpr expr,
RCP< EvalVector > &  result 
) const

void EvalManager::evalCurveNormExpr ( const CurveNormExpr expr,
RCP< EvalVector > &  result 
) const

void EvalManager::evalDiscreteFuncElement ( const DiscreteFuncElement expr,
const Array< MultiIndex > &  mi,
Array< RCP< EvalVector > > &  result 
) const

int Sundance::EvalManager::getMaxDiffOrder (  )  const

const EvalContext& Sundance::EvalManager::getRegion (  )  const [inline]

const AbstractEvalMediator* Sundance::EvalManager::mediator (  )  const [inline]

Return a pointer to the mediator. We'll need the mediator for computing framework-specific functions.

Definition at line 106 of file SundanceEvalManager.hpp.

References mediator_.

Referenced by evalCellDiameterExpr(), evalCellVectorExpr(), evalCoordExpr(), evalCurveNormExpr(), evalDiscreteFuncElement(), and showResults().

RCP< EvalVector > EvalManager::popVector (  )  const

void Sundance::EvalManager::setMediator ( const RCP< AbstractEvalMediator > &  med  )  [inline]

Definition at line 89 of file SundanceEvalManager.hpp.

References mediator_.

void Sundance::EvalManager::setRegion ( const EvalContext region  )  [inline]

Definition at line 109 of file SundanceEvalManager.hpp.

References region_.

void Sundance::EvalManager::setVecSize ( int  vecSize  )  [inline]

Definition at line 100 of file SundanceEvalManager.hpp.

References Sundance::TempStack::setVecSize(), and stack().

void EvalManager::setVerb ( int  verb  ) 

Definition at line 54 of file SundanceEvalManager.cpp.

References verb_.

void EvalManager::showResults ( std::ostream &  os,
const RCP< SparsitySuperset > &  sparsity,
const Array< RCP< EvalVector > > &  vecResults,
const Array< double > &  constantResults 
) const

TempStack & EvalManager::stack (  )  [static]

Sundance::EvalManager::TEUCHOS_TIMER ( discFuncEvalTimer  ,
"discrete function evaluation"   

Sundance::EvalManager::TEUCHOS_TIMER ( coordEvalTimer  ,
"coord function evaluation"   

int Sundance::EvalManager::verb (  )  const [inline]

Member Data Documentation

Definition at line 136 of file SundanceEvalManager.hpp.

Referenced by mediator(), and setMediator().

Definition at line 134 of file SundanceEvalManager.hpp.

Referenced by getRegion(), and setRegion().

Definition at line 132 of file SundanceEvalManager.hpp.

Referenced by setVerb(), and verb().

Site Contact