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

Public Member Functions
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

Definition at line 12 of file testBug90848.cc.

References HepTool::Evaluator::setStdMath().


Member Function Documentation

double MyEvaluator::evaluate ( const char *  expression) [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:
expressioninput 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::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: