#include <G4LogicalVolumeStore.hh>
Definition at line 62 of file G4LogicalVolumeStore.hh.
◆ ~G4LogicalVolumeStore()
G4LogicalVolumeStore::~G4LogicalVolumeStore |
( |
| ) |
|
|
virtual |
◆ G4LogicalVolumeStore()
G4LogicalVolumeStore::G4LogicalVolumeStore |
( |
| ) |
|
|
protected |
◆ Clean()
void G4LogicalVolumeStore::Clean |
( |
| ) |
|
|
static |
Definition at line 73 of file G4LogicalVolumeStore.cc.
74{
75
76
78 {
79 G4cout <<
"WARNING - Attempt to delete the logical volume store"
80 <<
" while geometry closed !" <<
G4endl;
81 return;
82 }
83
84
85
86
87 locked = true;
88
89 size_t i=0;
91
92#ifdef G4GEOMETRY_VOXELDEBUG
93 G4cout <<
"Deleting Logical Volumes ... ";
94#endif
95
96 for(iterator pos=store->begin(); pos!=store->end(); pos++)
97 {
99 if (*pos) { (*pos)->Lock(); delete *pos; }
100 i++;
101 }
102
103#ifdef G4GEOMETRY_VOXELDEBUG
104 if (store->size() < i-1)
105 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
106 else
108#endif
109
110 locked = false;
111 store->clear();
112}
G4DLLIMPORT std::ostream G4cout
static G4GeometryManager * GetInstance()
static G4LogicalVolumeStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by G4GDMLMessenger::SetNewValue(), and ~G4LogicalVolumeStore().
◆ DeRegister()
◆ GetInstance()
Definition at line 181 of file G4LogicalVolumeStore.cc.
182{
184 if (!fgInstance)
185 {
186 fgInstance = &worldStore;
187 }
188 return fgInstance;
189}
Referenced by checkVol(), Clean(), DeRegister(), G4RadioactiveDecay::DeselectAVolume(), G4Region::GetParentRegion(), G4GDMLReadStructure::GetVolume(), GetVolume(), Register(), G4RadioactiveDecay::SelectAllVolumes(), G4RadioactiveDecay::SelectAVolume(), G4VVisCommandGeometrySet::Set(), G4GDMLMessenger::SetNewValue(), G4VisCommandGeometryList::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), SetNotifier(), and G4GDMLRead::StripNames().
◆ GetVolume()
Definition at line 159 of file G4LogicalVolumeStore.cc.
160{
162 {
163 if ((*i)->GetName() == name) { return *i; }
164 }
165 if (verbose)
166 {
167 std::ostringstream message;
168 message <<
"Volume NOT found in store !" <<
G4endl
169 <<
" Volume " << name <<
" NOT found in store !" <<
G4endl
170 << " Returning NULL pointer.";
173 }
174 return 0;
175}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by G4GDMLReadStructure::GetVolume(), and G4GDMLMessenger::SetNewValue().
◆ Register()
◆ SetNotifier()
The documentation for this class was generated from the following files: