Geant4-11
|
#include "CLHEP/Evaluator/Evaluator.h"
#include <iostream>
#include <sstream>
#include <cmath>
#include "CLHEP/Evaluator/stack.icc"
#include "CLHEP/Evaluator/string.icc"
#include "CLHEP/Evaluator/hash_map.icc"
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | Item |
struct | Struct |
Namespaces | |
namespace | HepTool |
Macros | |
#define | EVAL HepTool::Evaluator |
#define | EVAL_EXIT(STATUS, POSITION) endp = POSITION; return STATUS |
#define | MAX_N_PAR 5 |
#define | REMOVE_BLANKS |
#define | SKIP_BLANKS |
Typedefs | |
typedef hash_map< string, Item > | dic_type |
typedef char * | pchar |
typedef void(* | voidfuncptr) () |
Enumerations | |
enum | { ENDL , LBRA , OR , AND , EQ , NE , GE , GT , LE , LT , PLUS , MINUS , UNARY_PLUS , UNARY_MINUS , MULT , DIV , POW , RBRA , VALUE } |
Functions | |
static int | engine (pchar, pchar, double &, pchar &, const dic_type &) |
static int | function (const string &name, stack< double > &par, double &result, const dic_type &dictionary) |
static int | maker (int op, stack< double > &val) |
static int | operand (pchar begin, pchar end, double &result, pchar &endp, const dic_type &dictionary) |
static void | setItem (const char *prefix, const char *name, const Item &item, Struct *s) |
static int | variable (const string &name, double &result, const dic_type &dictionary) |
Variables | |
static const char | sss [MAX_N_PAR+2] = "012345" |
#define EVAL HepTool::Evaluator |
Definition at line 48 of file Evaluator.cc.
Definition at line 60 of file Evaluator.cc.
#define MAX_N_PAR 5 |
Definition at line 61 of file Evaluator.cc.
#define REMOVE_BLANKS |
Definition at line 50 of file Evaluator.cc.
#define SKIP_BLANKS |
Definition at line 54 of file Evaluator.cc.
Definition at line 37 of file Evaluator.cc.
typedef char* pchar |
Definition at line 36 of file Evaluator.cc.
typedef void(* voidfuncptr) () |
Definition at line 20 of file Evaluator.cc.
anonymous enum |
Enumerator | |
---|---|
ENDL | |
LBRA | |
OR | |
AND | |
EQ | |
NE | |
GE | |
GT | |
LE | |
LT | |
PLUS | |
MINUS | |
UNARY_PLUS | |
UNARY_MINUS | |
MULT | |
DIV | |
POW | |
RBRA | |
VALUE |
Definition at line 65 of file Evaluator.cc.
|
static |
Definition at line 360 of file Evaluator.cc.
References AND, DIV, ENDL, EQ, EVAL_EXIT, GE, GT, LBRA, LE, LT, maker(), MINUS, MULT, NE, operand(), OR, PLUS, pos, POW, RBRA, SKIP_BLANKS, UNARY_MINUS, UNARY_PLUS, and VALUE.
Referenced by HepTool::Evaluator::evaluate(), operand(), and variable().
|
static |
Definition at line 108 of file Evaluator.cc.
References Item::function, MAX_N_PAR, G4InuclParticleNames::name(), G4InuclParticleNames::pp, and sss.
Referenced by operand().
|
static |
Definition at line 285 of file Evaluator.cc.
References AND, DIV, EQ, GE, GT, LE, LT, MINUS, MULT, NE, OR, PLUS, POW, UNARY_MINUS, and UNARY_PLUS.
Referenced by engine().
|
static |
Definition at line 163 of file Evaluator.cc.
References engine(), EVAL_EXIT, function(), G4InuclParticleNames::name(), pos, SKIP_BLANKS, and variable().
Referenced by any_cast(), G4MultiUnion::CreatePolyhedron(), engine(), and G4BooleanSolid::StackPolyhedron().
|
static |
Definition at line 551 of file Evaluator.cc.
References CLHEP::detail::n, G4InuclParticleNames::name(), REMOVE_BLANKS, and s.
Referenced by HepTool::Evaluator::setFunction(), and HepTool::Evaluator::setVariable().
|
static |
Definition at line 70 of file Evaluator.cc.
References engine(), Item::EXPRESSION, Item::expression, G4InuclParticleNames::name(), Item::VARIABLE, Item::variable, and Item::what.
Referenced by operand().
|
static |
Definition at line 63 of file Evaluator.cc.
Referenced by HepTool::Evaluator::findFunction(), function(), G4PolarizedComptonModel::PrintWarning(), G4JTPolynomialSolver::RealPolynomialIteration(), HepTool::Evaluator::removeFunction(), G4EmLowEParameters::SetLivermoreDataDir(), G4EmParameters::SetLivermoreDataDir(), G4EmLowEParameters::SetPIXECrossSectionModel(), G4EmParameters::SetPIXECrossSectionModel(), G4EmLowEParameters::SetPIXEElectronCrossSectionModel(), and G4EmParameters::SetPIXEElectronCrossSectionModel().