Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Evaluator.cc File Reference
#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

namespace  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, Itemdic_type
 

Enumerations

enum  {
  ENDL , LBRA , OR , AND ,
  EQ , NE , GE , GT ,
  LE , LT , PLUS , MINUS ,
  UNARY_PLUS , UNARY_MINUS , MULT , DIV ,
  POW , RBRA , VALUE
}
 

Macro Definition Documentation

◆ EVAL

#define EVAL   HepTool::Evaluator

Definition at line 48 of file Evaluator.cc.

◆ EVAL_EXIT

#define EVAL_EXIT (   STATUS,
  POSITION 
)    endp = POSITION; return STATUS

Definition at line 60 of file Evaluator.cc.

◆ MAX_N_PAR

#define MAX_N_PAR   5

Definition at line 61 of file Evaluator.cc.

◆ REMOVE_BLANKS

#define REMOVE_BLANKS
Value:
for(pointer=name;;pointer++) if (!isspace(*pointer)) break; \
for(n=strlen(pointer);n>0;n--) if (!isspace(*(pointer+n-1))) break

Definition at line 50 of file Evaluator.cc.

◆ SKIP_BLANKS

#define SKIP_BLANKS
Value:
for(;;pointer++) { \
c = (pointer > end) ? '\0' : *pointer; \
if (!isspace(c)) break; \
}

Definition at line 54 of file Evaluator.cc.

Typedef Documentation

◆ dic_type

typedef hash_map<string,Item> dic_type

Definition at line 37 of file Evaluator.cc.

◆ pchar

typedef char* pchar

Definition at line 36 of file Evaluator.cc.

◆ voidfuncptr

typedef void(* voidfuncptr) ()

Definition at line 20 of file Evaluator.cc.

Enumeration Type Documentation

◆ anonymous enum

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.

65 { ENDL, LBRA, OR, AND, EQ, NE, GE, GT, LE, LT,
@ RBRA
Definition: Evaluator.cc:66
@ LBRA
Definition: Evaluator.cc:65
@ GT
Definition: Evaluator.cc:65
@ MULT
Definition: Evaluator.cc:66
@ ENDL
Definition: Evaluator.cc:65
@ POW
Definition: Evaluator.cc:66
@ UNARY_MINUS
Definition: Evaluator.cc:66
@ LT
Definition: Evaluator.cc:65
@ NE
Definition: Evaluator.cc:65
@ GE
Definition: Evaluator.cc:65
@ UNARY_PLUS
Definition: Evaluator.cc:66
@ LE
Definition: Evaluator.cc:65
@ DIV
Definition: Evaluator.cc:66
@ AND
Definition: Evaluator.cc:65
@ PLUS
Definition: Evaluator.cc:66
@ OR
Definition: Evaluator.cc:65
@ EQ
Definition: Evaluator.cc:65
@ VALUE
Definition: Evaluator.cc:66
@ MINUS
Definition: Evaluator.cc:66