75 G4cout <<
"WARNING - Attempt to delete the assembly store"
76 <<
" while geometry closed !" <<
G4endl;
87 for(
const auto & pos : *store)
90 if (pos !=
nullptr) {
delete pos; }
104 fgNotifier = pNotifier;
144 if (fgInstance ==
nullptr)
146 fgInstance = &assemblyStore;
160 if (i->GetAssemblyID() ==
id) {
return i; }
164 std::ostringstream message;
165 message <<
"Assembly NOT found in store !" <<
G4endl
166 <<
" Assembly " <<
id <<
" NOT found in store !" <<
G4endl
167 <<
" 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