#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
88 size_t i=0;
90
91#ifdef G4DEBUG_NAVIGATION
92 G4cout <<
"Deleting Assemblies ... ";
93#endif
94
95 for(auto pos=store->cbegin(); pos!=store->cend(); ++pos)
96 {
98 if (*pos) {
delete *
pos; }
99 ++i;
100 }
101
102#ifdef G4DEBUG_NAVIGATION
103 if (store->size() < i-1)
104 {
G4cout <<
"No assembly deleted. Already deleted by user ?" <<
G4endl; }
105 else
107#endif
108
109 locked = false;
110 store->clear();
111}
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 157 of file G4AssemblyStore.cc.
158{
160 if (fgInstance == nullptr)
161 {
162 fgInstance = &assemblyStore;
163 }
164 return fgInstance;
165}
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: