BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
#include <atom.h>
Public Member Functions | |
Atom () | |
constructor | |
void | clear () |
reset | |
void | print () const |
printout | |
template<typename T > | |
void | set_value (std::string property, T value) |
set methods by property name and value | |
![]() | |
bool | NameExists (const std::string &name) const |
Published< Atom >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
name | |
double | A |
g*mol^-1 | |
double | Z |
std::string | symbol |
Private Member Functions | |
void | PublishMembers () |
publish members so these can be looked up from parser | |
Additional Inherited Members | |
![]() | |
using | AttributeMap = typename std::unordered_map< std::string, T C::* > |
Define AttributeMap of string and class member pointer. | |
![]() | |
void | publish (const std::string &name, T C::*mp) |
Make pointer to member from class C and type T with accessible with a name. | |
void | set (Atom *instance, const Atom *instance2, const std::string &name) |
Set member with name of class instance to value of second instance. | |
AttributeMap< T > & | attribute_map () const |
Access method to static map for type T and class C. | |
T | get (const Atom *instance, const std::string &name) const |
Get method for class C. | |
void | set (Atom *instance, const std::string &name, double value) |
void | set (Atom *instance, const std::string &name, GMAD::Array *const &value) |
void | set (Atom *instance, const std::string &name, const T &value) |
Atom::Atom | ( | ) |
constructor
Definition at line 23 of file atom.cc.
References clear(), and PublishMembers().
void Atom::clear | ( | ) |
|
private |
void GMAD::Atom::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 60 of file atom.h.
References GMAD::Published< Atom >::set().
double GMAD::Atom::A |
g*mol^-1
Definition at line 40 of file atom.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::Atom::name |