78 G4cout <<
"WARNING - Attempt to delete the assembly store"
79 <<
" while geometry closed !" <<
G4endl;
91#ifdef G4DEBUG_NAVIGATION
92 G4cout <<
"Deleting Assemblies ... ";
95 for(
auto pos=store->cbegin(); pos!=store->cend(); ++pos)
98 if (*pos) {
delete *pos; }
102#ifdef G4DEBUG_NAVIGATION
103 if (store->size() < i-1)
104 {
G4cout <<
"No assembly deleted. Already deleted by user ?" <<
G4endl; }
120 fgNotifier = pNotifier;
160 if (fgInstance ==
nullptr)
162 fgInstance = &assemblyStore;
176 if ((*i)->GetAssemblyID() == id) {
return *i; }
180 std::ostringstream message;
181 message <<
"Assembly NOT found in store !" <<
G4endl
182 <<
" Assembly " <<
id <<
" NOT found in store !" <<
G4endl
183 <<
" Returning NULL pointer.";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
virtual ~G4AssemblyStore()
static G4AssemblyStore * GetInstance()
static void DeRegister(G4AssemblyVolume *pAssembly)
static void SetNotifier(G4VStoreNotifier *pNotifier)
G4AssemblyVolume * GetAssembly(unsigned int id, G4bool verbose=true) const
static void Register(G4AssemblyVolume *pAssembly)
static G4bool IsGeometryClosed()
virtual void NotifyRegistration()=0
virtual void NotifyDeRegistration()=0