74 G4cout <<
"WARNING - Attempt to delete the logical volume store"
75 <<
" while geometry closed !" <<
G4endl;
87#ifdef G4GEOMETRY_VOXELDEBUG
88 G4cout <<
"Deleting Logical Volumes ... ";
91 for(
auto pos=store->cbegin(); pos!=store->cend(); ++pos)
94 if (*pos !=
nullptr) { (*pos)->Lock();
delete *pos; }
98#ifdef G4GEOMETRY_VOXELDEBUG
99 if (store->size() < i-1)
100 {
G4cout <<
"No volumes deleted. Already deleted by user ?" <<
G4endl; }
116 fgNotifier = pNotifier;
158 if ((*i)->GetName() == name) {
return *i; }
162 std::ostringstream message;
163 message <<
"Volume NOT found in store !" <<
G4endl
164 <<
" Volume " << name <<
" NOT found in store !" <<
G4endl
165 <<
" Returning NULL pointer.";
179 if (fgInstance ==
nullptr)
181 fgInstance = &worldStore;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
static G4bool IsGeometryClosed()
virtual ~G4LogicalVolumeStore()
G4LogicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
static void DeRegister(G4LogicalVolume *pVolume)
static void Register(G4LogicalVolume *pVolume)
static G4LogicalVolumeStore * GetInstance()
static void SetNotifier(G4VStoreNotifier *pNotifier)
virtual void NotifyRegistration()=0
virtual void NotifyDeRegistration()=0