Geant4
10.01.p01
|
#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.
Classes | |
struct | Item |
struct | Struct |
Namespaces | |
HepTool | |
Macros | |
#define | EVAL HepTool::Evaluator |
#define | REMOVE_BLANKS |
#define | SKIP_BLANKS |
#define | EVAL_EXIT(STATUS, POSITION) endp = POSITION; return STATUS |
#define | MAX_N_PAR 5 |
Typedefs | |
typedef void(* | voidfuncptr )() |
typedef char * | pchar |
typedef hash_map< string, Item > | dic_type |
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 | variable (const string &name, double &result, const dic_type &dictionary) |
static int | function (const string &name, stack< double > &par, double &result, const dic_type &dictionary) |
static int | operand (pchar begin, pchar end, double &result, pchar &endp, const dic_type &dictionary) |
static int | maker (int op, stack< double > &val) |
static void | setItem (const char *prefix, const char *name, const Item &item, Struct *s) |
Variables | |
static const char | sss [MAX_N_PAR+2] = "012345" |
#define EVAL HepTool::Evaluator |
Definition at line 49 of file Evaluator.cc.
Definition at line 61 of file Evaluator.cc.
#define MAX_N_PAR 5 |
Definition at line 62 of file Evaluator.cc.
Referenced by function().
#define REMOVE_BLANKS |
#define SKIP_BLANKS |
Definition at line 55 of file Evaluator.cc.
Definition at line 38 of file Evaluator.cc.
typedef char* pchar |
Definition at line 37 of file Evaluator.cc.
typedef void(* voidfuncptr)() |
Definition at line 21 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 66 of file Evaluator.cc.
|
static |
Definition at line 358 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 operand(), and variable().
|
static |
Definition at line 107 of file Evaluator.cc.
References Item::function, MAX_N_PAR, name, G4InuclParticleNames::pp, and sss.
|
static |
|
static |
Definition at line 162 of file Evaluator.cc.
References engine(), EVAL_EXIT, name, pos, SKIP_BLANKS, and variable().
Referenced by any_cast(), G4UMultiUnion::CreatePolyhedron(), engine(), and G4BooleanSolid::StackPolyhedron().
|
static |
Definition at line 549 of file Evaluator.cc.
References n, REMOVE_BLANKS, Struct::theDictionary, and Struct::theStatus.
|
static |
Definition at line 71 of file Evaluator.cc.
References engine(), Item::EXPRESSION, Item::expression, Item::VARIABLE, Item::variable, and Item::what.
Referenced by operand().
|
static |
Definition at line 64 of file Evaluator.cc.
Referenced by function(), G4JTPolynomialSolver::RealPolynomialIteration(), GammaRayTelDetectorConstruction::SetMagField(), DMXEventAction::writePmtHitsToFile(), and DMXEventAction::writeScintHitsToFile().