CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ClhepEvaluator Class Reference

#include <ClhepEvaluator.h>

Public Member Functions

void clear ()
 
 ClhepEvaluator ()
 
double eval (const std::string &ns, const std::string &expr)
 
double eval (const char *expression)
 evaluations using directly the CLHEP-evaluator More...
 
bool isDefined (const std::string &ns, const std::string &name)
 
void set (const std::string &ns, const std::string &name, const std::string &exprValue)
 
void set (const std::string &name, const std::string &value)
 filling the clhep-implementation of the dictionary More...
 
const std::vector< std::string > & values () const
 
const std::vector< std::string > & variables () const
 access to the clhep-implementation of the dictionary variables More...
 
 ~ClhepEvaluator ()
 

Private Member Functions

void checkname (const std::string &name) const
 
void prepare (const std::string &ns, const std::string &name, const std::string &exprValue, std::string &nameResult, std::string &valResult) const
 
void throwex (const std::string &ns, const std::string &name, const std::string &expr, const std::string &reason, int idx=0) const
 

Private Attributes

HepTool::Evaluator evaluator_
 
std::vector< std::string > values_
 
std::vector< std::string > variables_
 

Detailed Description

Definition at line 10 of file ClhepEvaluator.h.

Constructor & Destructor Documentation

ClhepEvaluator::ClhepEvaluator ( )

Definition at line 5 of file ClhepEvaluator.cc.

ClhepEvaluator::~ClhepEvaluator ( )

Definition at line 21 of file ClhepEvaluator.cc.

Member Function Documentation

void ClhepEvaluator::checkname ( const std::string &  name) const
private

Definition at line 269 of file ClhepEvaluator.cc.

void ClhepEvaluator::clear ( void  )
double ClhepEvaluator::eval ( const std::string &  ns,
const std::string &  expr 
)
double ClhepEvaluator::eval ( const char *  expression)

evaluations using directly the CLHEP-evaluator

expression must be an expression compatible with the CLHEP-Evaluator syntax

Definition at line 115 of file ClhepEvaluator.cc.

bool ClhepEvaluator::isDefined ( const std::string &  ns,
const std::string &  name 
)

Definition at line 129 of file ClhepEvaluator.cc.

void ClhepEvaluator::prepare ( const std::string &  ns,
const std::string &  name,
const std::string &  exprValue,
std::string &  nameResult,
std::string &  valResult 
) const
private

Definition at line 151 of file ClhepEvaluator.cc.

void ClhepEvaluator::set ( const std::string &  ns,
const std::string &  name,
const std::string &  exprValue 
)

Definition at line 42 of file ClhepEvaluator.cc.

Referenced by DDLSAX2ExpressionHandler::startElement().

void ClhepEvaluator::set ( const std::string &  name,
const std::string &  value 
)

filling the clhep-implementation of the dictionary

Definition at line 71 of file ClhepEvaluator.cc.

void ClhepEvaluator::throwex ( const std::string &  ns,
const std::string &  name,
const std::string &  expr,
const std::string &  reason,
int  idx = 0 
) const
private

Definition at line 255 of file ClhepEvaluator.cc.

const std::vector<std::string>& ClhepEvaluator::values ( ) const
inline

Definition at line 27 of file ClhepEvaluator.h.

References values_.

27 { return values_;}
std::vector< std::string > values_
const std::vector<std::string>& ClhepEvaluator::variables ( ) const
inline

access to the clhep-implementation of the dictionary variables

Definition at line 26 of file ClhepEvaluator.h.

References variables_.

26 { return variables_;}
std::vector< std::string > variables_

Member Data Documentation

HepTool::Evaluator ClhepEvaluator::evaluator_
private

Definition at line 53 of file ClhepEvaluator.h.

std::vector<std::string> ClhepEvaluator::values_
private

Definition at line 55 of file ClhepEvaluator.h.

Referenced by values().

std::vector<std::string> ClhepEvaluator::variables_
private

Definition at line 54 of file ClhepEvaluator.h.

Referenced by variables().