BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Class that hold the symbol table. More...
#include <symbolmap.h>
Public Member Functions | |
void | clear () |
Destructor that clears memory. | |
Symtab * | symcreate (std::string s) |
Create new parser symbol. | |
Symtab * | symlook (std::string s) |
Look up parser symbol. | |
Private Attributes | |
std::map< std::string, Symtab * > | symtab_map |
Parser symbol map. | |
Class that hold the symbol table.
Definition at line 33 of file symbolmap.h.
void SymbolMap::clear | ( | ) |
Destructor that clears memory.
Definition at line 48 of file symbolmap.cc.
References symtab_map.
Referenced by GMAD::Parser::ParseFile().
Symtab * SymbolMap::symcreate | ( | std::string | s | ) |
Create new parser symbol.
Definition at line 28 of file symbolmap.cc.
References symtab_map.
Referenced by GMAD::Parser::add_func(), and GMAD::Parser::symcreate().
Symtab * SymbolMap::symlook | ( | std::string | s | ) |
Look up parser symbol.
Definition at line 42 of file symbolmap.cc.
References symtab_map.
Referenced by GMAD::Parser::symlook().
|
private |
Parser symbol map.
Definition at line 44 of file symbolmap.h.
Referenced by clear(), symcreate(), and symlook().