#include <G4SolidStore.hh>
Definition at line 58 of file G4SolidStore.hh.
◆ ~G4SolidStore()
G4SolidStore::~G4SolidStore |
( |
| ) |
|
|
virtual |
◆ G4SolidStore() [1/2]
◆ G4SolidStore() [2/2]
G4SolidStore::G4SolidStore |
( |
| ) |
|
|
protected |
Definition at line 49 of file G4SolidStore.cc.
50 : std::vector<G4VSolid*>()
51{
52 reserve(100);
53}
◆ Clean()
void G4SolidStore::Clean |
( |
| ) |
|
|
static |
Definition at line 68 of file G4SolidStore.cc.
69{
70
71
73 {
74 G4cout <<
"WARNING - Attempt to delete the solid store"
75 <<
" while geometry closed !" <<
G4endl;
76 return;
77 }
78
79
80
81
82 locked = true;
83
84 size_t i = 0;
86
87#ifdef G4GEOMETRY_VOXELDEBUG
88 G4cout <<
"Deleting Solids ... ";
89#endif
90
91 for(auto pos=store->cbegin(); pos!=store->cend(); ++pos)
92 {
95 }
96
97#ifdef G4GEOMETRY_VOXELDEBUG
98 if (store->size() < i-1)
99 {
G4cout <<
"No solids deleted. Already deleted by user ?" <<
G4endl; }
100 else
102#endif
103
104 locked = false;
105 store->clear();
106}
G4GLOB_DLL std::ostream G4cout
static G4bool IsGeometryClosed()
static G4SolidStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by G4RunManager::ReinitializeGeometry(), and ~G4SolidStore().
◆ DeRegister()
void G4SolidStore::DeRegister |
( |
G4VSolid * |
pSolid | ) |
|
|
static |
◆ GetInstance()
Definition at line 173 of file G4SolidStore.cc.
174{
176 if (fgInstance == nullptr)
177 {
178 fgInstance = &worldStore;
179 }
180 return fgInstance;
181}
Referenced by Clean(), DeRegister(), G4Voxelizer::G4Voxelizer(), G4VSolid::G4VSolid(), G4GDMLReadSolids::GetSolid(), GetSolid(), Register(), G4RunManager::ReinitializeGeometry(), SetNotifier(), G4GeometryManager::SetWorldMaximumExtent(), G4GDMLRead::StripNames(), and G4VSolid::~G4VSolid().
◆ GetSolid()
Definition at line 152 of file G4SolidStore.cc.
153{
155 {
156 if ((*i)->GetName() ==
name) {
return *i; }
157 }
158 if (verbose)
159 {
160 std::ostringstream message;
161 message <<
"Solid " <<
name <<
" not found in store !" <<
G4endl
162 << "Returning NULL pointer.";
165 }
166 return nullptr;
167}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const char * name(G4int ptype)
Referenced by G4GDMLReadSolids::GetSolid().
◆ operator=()
◆ Register()
void G4SolidStore::Register |
( |
G4VSolid * |
pSolid | ) |
|
|
static |
◆ SetNotifier()
The documentation for this class was generated from the following files: