CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

MyEvaluator Class Reference

Inheritance diagram for MyEvaluator:

HepTool::Evaluator List of all members.

Public Member Functions

 MyEvaluator ()
bool isOK ()
double evaluate (const char *e)

Detailed Description

Definition at line 10 of file testBug90848.cc.


Constructor & Destructor Documentation

MyEvaluator::MyEvaluator (  )  [inline]

Definition at line 12 of file testBug90848.cc.

References HepTool::Evaluator::setStdMath().


Member Function Documentation

double MyEvaluator::evaluate ( const char *  e  )  [inline]

Evaluates the arithmetic expression given as character string. The expression may consist of numbers, variables and functions separated by arithmetic (+, - , /, *, ^, **) and logical operators (==, !=, >, >=, <, <=, &&, ||).

Parameters:
expression input expression.
Returns:
result of the evaluation.
See also:
status

error_position

print_error

Reimplemented from HepTool::Evaluator.

Definition at line 14 of file testBug90848.cc.

References HepTool::Evaluator::evaluate(), HepTool::Evaluator::OK, and HepTool::Evaluator::status().

Referenced by main().

bool MyEvaluator::isOK (  )  [inline]

Definition at line 13 of file testBug90848.cc.

References HepTool::Evaluator::OK, and HepTool::Evaluator::status().

Referenced by main().


The documentation for this class was generated from the following file:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7