#include <G4AssemblyStore.hh>
Definition at line 59 of file G4AssemblyStore.hh.
◆ G4AssemblyStore()
G4AssemblyStore::G4AssemblyStore |
( |
| ) |
|
|
protected |
Definition at line 53 of file G4AssemblyStore.cc.
54 : std::vector<G4AssemblyVolume*>()
55{
56 reserve(20);
57}
◆ ~G4AssemblyStore()
G4AssemblyStore::~G4AssemblyStore |
( |
| ) |
|
|
protectedvirtual |
◆ Clean()
void G4AssemblyStore::Clean |
( |
| ) |
|
|
static |
Definition at line 72 of file G4AssemblyStore.cc.
73{
74
75
77 {
78 G4cout <<
"WARNING - Attempt to delete the assembly store"
79 <<
" while geometry closed !" <<
G4endl;
80 return;
81 }
82
83
84
85
86 locked = true;
87
89
90 for(auto pos=store->cbegin(); pos!=store->cend(); ++pos)
91 {
93 if (*pos) {
delete *
pos; }
94 }
95
96 locked = false;
97 store->clear();
98}
G4GLOB_DLL std::ostream G4cout
static G4AssemblyStore * GetInstance()
static G4bool IsGeometryClosed()
virtual void NotifyDeRegistration()=0
Referenced by G4RunManager::ReinitializeGeometry(), and ~G4AssemblyStore().
◆ DeRegister()
◆ GetAssembly()
◆ GetInstance()
Definition at line 144 of file G4AssemblyStore.cc.
145{
147 if (fgInstance == nullptr)
148 {
149 fgInstance = &assemblyStore;
150 }
151 return fgInstance;
152}
Referenced by G4GDMLWriteStructure::AssemblyWrite(), Clean(), DeRegister(), G4AssemblyVolume::G4AssemblyVolume(), GetAssembly(), Register(), G4RunManager::ReinitializeGeometry(), SetNotifier(), G4GDMLWriteStructure::StructureWrite(), G4GDMLWriteStructure::TraverseVolumeTree(), and G4AssemblyVolume::~G4AssemblyVolume().
◆ Register()
◆ SetNotifier()
The documentation for this class was generated from the following files: