#include <G4PhysicalVolumeStore.hh>
Definition at line 62 of file G4PhysicalVolumeStore.hh.
◆ ~G4PhysicalVolumeStore()
G4PhysicalVolumeStore::~G4PhysicalVolumeStore |
( |
| ) |
|
|
virtual |
◆ G4PhysicalVolumeStore()
G4PhysicalVolumeStore::G4PhysicalVolumeStore |
( |
| ) |
|
|
protected |
◆ Clean()
void G4PhysicalVolumeStore::Clean |
( |
| ) |
|
|
static |
Definition at line 74 of file G4PhysicalVolumeStore.cc.
75{
76
77
79 {
80 G4cout <<
"WARNING - Attempt to delete the physical volume store"
81 <<
" while geometry closed !" <<
G4endl;
82 return;
83 }
84
85
86
87
88
89 locked = true;
90
91 size_t i=0;
93 std::vector<G4VPhysicalVolume*>::iterator pos;
94
95#ifdef G4GEOMETRY_VOXELDEBUG
96 G4cout <<
"Deleting Physical Volumes ... ";
97#endif
98
99 for(pos=store->begin(); pos!=store->end(); pos++)
100 {
102 if (*pos) { delete *pos; }
103 i++;
104 }
105
106#ifdef G4GEOMETRY_VOXELDEBUG
107 if (store->size() < i-1)
108 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
109 else
111#endif
112
113 locked = false;
114 store->clear();
115}
G4DLLIMPORT std::ostream G4cout
static G4GeometryManager * GetInstance()
static G4PhysicalVolumeStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by G4GDMLMessenger::SetNewValue(), and ~G4PhysicalVolumeStore().
◆ DeRegister()
◆ GetInstance()
Definition at line 187 of file G4PhysicalVolumeStore.cc.
188{
190 if (!fgInstance)
191 {
192 fgInstance = &worldStore;
193 }
194 return fgInstance;
195}
Referenced by G4AdjointCrossSurfChecker::AddanExtSurfaceOfAvolume(), G4AdjointCrossSurfChecker::AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume(), Clean(), G4SPSPosDistribution::ConfineSourceToVolume(), G4AdjointPosOnPhysVolGenerator::DefinePhysicalVolume(), DeRegister(), G4GDMLReadStructure::GetPhysvol(), G4tgbGeometryDumper::GetTopPhysVol(), GetVolume(), Register(), SetNotifier(), G4RegionStore::SetWorldVolume(), and G4GDMLRead::StripNames().
◆ GetVolume()
Definition at line 165 of file G4PhysicalVolumeStore.cc.
166{
168 {
169 if ((*i)->GetName() == name) { return *i; }
170 }
171 if (verbose)
172 {
173 std::ostringstream message;
174 message <<
"Volume NOT found in store !" <<
G4endl
175 <<
" Volume " << name <<
" NOT found in store !" <<
G4endl
176 << " Returning NULL pointer.";
179 }
180 return 0;
181}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by G4GDMLReadStructure::GetPhysvol().
◆ Register()
◆ SetNotifier()
The documentation for this class was generated from the following files: