BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
#include <aperture.h>
Public Member Functions | |
Aperture () | |
Constructor. | |
void | clear () |
Reset. | |
void | print () const |
Print some properties. | |
template<typename T > | |
void | set_value (std::string name, T value) |
Set methods by property name and value. | |
![]() | |
bool | NameExists (const std::string &name) const |
Published< Aperture >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
std::string | apertureType |
double | aper1 |
double | aper2 |
double | aper3 |
double | aper4 |
Private Member Functions | |
void | PublishMembers () |
publish members | |
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 (Aperture *instance, const Aperture *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 Aperture *instance, const std::string &name) const |
Get method for class C. | |
void | set (Aperture *instance, const std::string &name, double value) |
void | set (Aperture *instance, const std::string &name, GMAD::Array *const &value) |
void | set (Aperture *instance, const std::string &name, const T &value) |
Aperture class.
Definition at line 37 of file aperture.h.
Aperture::Aperture | ( | ) |
Constructor.
Definition at line 23 of file aperture.cc.
References clear(), and PublishMembers().
void Aperture::clear | ( | ) |
Reset.
Definition at line 29 of file aperture.cc.
Referenced by Aperture().
void Aperture::print | ( | ) | const |
Print some properties.
Definition at line 55 of file aperture.cc.
|
private |
publish members
Definition at line 39 of file aperture.cc.
References GMAD::Published< Aperture >::publish().
Referenced by Aperture().
void GMAD::Aperture::set_value | ( | std::string | name, |
T | value | ||
) |
Set methods by property name and value.
Definition at line 63 of file aperture.h.
References GMAD::Published< Aperture >::set().
double GMAD::Aperture::aper1 |
Definition at line 42 of file aperture.h.
double GMAD::Aperture::aper2 |
Definition at line 43 of file aperture.h.
double GMAD::Aperture::aper3 |
Definition at line 44 of file aperture.h.
double GMAD::Aperture::aper4 |
Definition at line 45 of file aperture.h.
std::string GMAD::Aperture::apertureType |
Definition at line 41 of file aperture.h.
std::string GMAD::Aperture::name |
Definition at line 40 of file aperture.h.