#include <G4LogicalVolumeStore.hh>
Definition at line 58 of file G4LogicalVolumeStore.hh.
◆ ~G4LogicalVolumeStore()
G4LogicalVolumeStore::~G4LogicalVolumeStore |
( |
| ) |
|
|
virtual |
◆ G4LogicalVolumeStore() [1/2]
◆ G4LogicalVolumeStore() [2/2]
G4LogicalVolumeStore::G4LogicalVolumeStore |
( |
| ) |
|
|
protected |
◆ Clean()
void G4LogicalVolumeStore::Clean |
( |
| ) |
|
|
static |
Definition at line 68 of file G4LogicalVolumeStore.cc.
69{
70
71
73 {
74 G4cout <<
"WARNING - Attempt to delete the logical volume store"
75 <<
" while geometry closed !" <<
G4endl;
76 return;
77 }
78
79
80
81
82 locked = true;
83
84 size_t i = 0;
86
87#ifdef G4GEOMETRY_VOXELDEBUG
88 G4cout <<
"Deleting Logical Volumes ... ";
89#endif
90
91 for(auto pos=store->cbegin(); pos!=store->cend(); ++pos)
92 {
94 if (*pos !=
nullptr) { (*pos)->Lock();
delete *
pos; }
95 ++i;
96 }
97
98#ifdef G4GEOMETRY_VOXELDEBUG
99 if (store->size() < i-1)
100 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
101 else
103#endif
104
105 locked = false;
106 store->clear();
107}
G4GLOB_DLL std::ostream G4cout
static G4bool IsGeometryClosed()
static G4LogicalVolumeStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by G4RunManager::ReinitializeGeometry(), and ~G4LogicalVolumeStore().
◆ DeRegister()
◆ GetInstance()
Definition at line 176 of file G4LogicalVolumeStore.cc.
177{
179 if (fgInstance == nullptr)
180 {
181 fgInstance = &worldStore;
182 }
183 return fgInstance;
184}
Referenced by checkVol(), Clean(), G4VUserDetectorConstruction::CloneF(), G4VUserDetectorConstruction::CloneSD(), DeRegister(), G4RadioactiveDecay::DeselectAVolume(), G4RadioactiveDecayBase::DeselectAVolume(), G4Region::GetParentRegion(), G4GDMLReadStructure::GetVolume(), GetVolume(), Register(), G4RunManager::ReinitializeGeometry(), G4RadioactiveDecay::SelectAllVolumes(), G4RadioactiveDecayBase::SelectAllVolumes(), G4RadioactiveDecay::SelectAVolume(), G4RadioactiveDecayBase::SelectAVolume(), G4VVisCommandGeometrySet::Set(), G4GDMLMessenger::SetNewValue(), G4VisCommandGeometryList::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), SetNotifier(), G4VUserDetectorConstruction::SetSensitiveDetector(), G4VUserParallelWorld::SetSensitiveDetector(), G4ScoringProbe::SetupGeometry(), G4ScoringRealWorld::SetupGeometry(), G4GDMLRead::StripNames(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
◆ GetVolume()
◆ operator=()
◆ Register()
◆ SetNotifier()
The documentation for this class was generated from the following files: