80 G4cout <<
"WARNING - Attempt to delete the physical volume store"
81 <<
" while geometry closed !" <<
G4endl;
93 std::vector<G4VPhysicalVolume*>::iterator
pos;
95 #ifdef G4GEOMETRY_VOXELDEBUG
96 G4cout <<
"Deleting Physical Volumes ... ";
99 for(pos=store->begin(); pos!=store->end(); pos++)
102 if (*pos) {
delete *
pos; }
106 #ifdef G4GEOMETRY_VOXELDEBUG
107 if (store->size() < i-1)
108 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
169 if ((*i)->GetName() ==
name) {
return *i; }
173 std::ostringstream message;
174 message <<
"Volume NOT found in store !" <<
G4endl
175 <<
" Volume " << name <<
" NOT found in store !" <<
G4endl
176 <<
" Returning NULL pointer.";
static G4PhysicalVolumeStore * fgInstance
static G4ThreadLocal G4VStoreNotifier * fgNotifier
virtual void NotifyDeRegistration()=0
virtual ~G4PhysicalVolumeStore()
static void Register(G4VPhysicalVolume *pSolid)
static G4ThreadLocal G4bool locked
static void DeRegister(G4VPhysicalVolume *pSolid)
static G4PhysicalVolumeStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
static G4GeometryManager * GetInstance()
G4LogicalVolume * GetMotherLogical() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static void SetNotifier(G4VStoreNotifier *pNotifier)
virtual void NotifyRegistration()=0
G4VPhysicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
static const G4double pos
void RemoveDaughter(const G4VPhysicalVolume *p)