#include <G4AssemblyStore.hh>
Definition at line 53 of file G4AssemblyStore.hh.
◆ G4AssemblyStore()
G4AssemblyStore::G4AssemblyStore |
( |
| ) |
|
|
protected |
◆ ~G4AssemblyStore()
G4AssemblyStore::~G4AssemblyStore |
( |
| ) |
|
|
protectedvirtual |
◆ Clean()
void G4AssemblyStore::Clean |
( |
| ) |
|
|
static |
Definition at line 69 of file G4AssemblyStore.cc.
70{
71
72
74 {
75 G4cout <<
"WARNING - Attempt to delete the assembly store"
76 <<
" while geometry closed !" <<
G4endl;
77 return;
78 }
79
80
81
82
83 locked = true;
84
86
87 for(const auto & pos : *store)
88 {
90 if (pos !=
nullptr) {
delete pos; }
91 }
92
93 locked = false;
94 store->clear();
95}
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 141 of file G4AssemblyStore.cc.
142{
144 if (fgInstance == nullptr)
145 {
146 fgInstance = &assemblyStore;
147 }
148 return fgInstance;
149}
Referenced by G4GDMLWriteStructure::AssemblyWrite(), Clean(), DeRegister(), G4AssemblyVolume::G4AssemblyVolume(), 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: