HPCToolkit
ExprEval Class Reference

#include <ExprEval.hpp>

Collaboration diagram for ExprEval:

Public Member Functions

double Eval (EVAL_CHAR *expr, BaseVarMap *var_map)
 
EXPR_EVAL_ERR GetErr ()
 
EVAL_CHARGetErrPos ()
 

Private Member Functions

double ParseAtom (EVAL_CHAR *&expr)
 
double ParseFactors (EVAL_CHAR *&expr)
 
double ParseSummands (EVAL_CHAR *&expr)
 

Private Attributes

EXPR_EVAL_ERR _err
 
EVAL_CHAR_err_pos
 
int _paren_count
 
BaseVarMap_var_map
 

Detailed Description

Definition at line 26 of file ExprEval.hpp.

Member Function Documentation

◆ Eval()

double ExprEval::Eval ( EVAL_CHAR expr,
BaseVarMap var_map 
)

Definition at line 134 of file ExprEval.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetErr()

EXPR_EVAL_ERR ExprEval::GetErr ( )

Definition at line 156 of file ExprEval.cpp.

Here is the caller graph for this function:

◆ GetErrPos()

EVAL_CHAR * ExprEval::GetErrPos ( )

Definition at line 161 of file ExprEval.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseAtom()

double ExprEval::ParseAtom ( EVAL_CHAR *&  expr)
private

Definition at line 17 of file ExprEval.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseFactors()

double ExprEval::ParseFactors ( EVAL_CHAR *&  expr)
private

Definition at line 83 of file ExprEval.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSummands()

double ExprEval::ParseSummands ( EVAL_CHAR *&  expr)
private

Definition at line 114 of file ExprEval.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _err

EXPR_EVAL_ERR ExprEval::_err
private

Definition at line 28 of file ExprEval.hpp.

◆ _err_pos

EVAL_CHAR* ExprEval::_err_pos
private

Definition at line 29 of file ExprEval.hpp.

◆ _paren_count

int ExprEval::_paren_count
private

Definition at line 30 of file ExprEval.hpp.

◆ _var_map

BaseVarMap* ExprEval::_var_map
private

Definition at line 33 of file ExprEval.hpp.


The documentation for this class was generated from the following files: