#include <G4SolidStore.hh>
Definition at line 62 of file G4SolidStore.hh.
◆ ~G4SolidStore()
G4SolidStore::~G4SolidStore |
( |
| ) |
|
|
virtual |
◆ G4SolidStore()
G4SolidStore::G4SolidStore |
( |
| ) |
|
|
protected |
Definition at line 54 of file G4SolidStore.cc.
55 : std::vector<G4VSolid*>()
56{
57 reserve(100);
58}
◆ Clean()
void G4SolidStore::Clean |
( |
| ) |
|
|
static |
Definition at line 73 of file G4SolidStore.cc.
74{
75
76
78 {
79 G4cout <<
"WARNING - Attempt to delete the solid store"
80 <<
" while geometry closed !" <<
G4endl;
81 return;
82 }
83
84
85
86
87 locked = true;
88
89 size_t i=0;
91
92#ifdef G4GEOMETRY_VOXELDEBUG
93 G4cout <<
"Deleting Solids ... ";
94#endif
95
96 for(iterator pos=store->begin(); pos!=store->end(); pos++)
97 {
99 if (*pos) { delete *pos; }
100 i++;
101 }
102
103#ifdef G4GEOMETRY_VOXELDEBUG
104 if (store->size() < i-1)
105 {
G4cout <<
"No solids deleted. Already deleted by user ?" <<
G4endl; }
106 else
108#endif
109
110 locked = false;
111 store->clear();
112}
G4DLLIMPORT std::ostream G4cout
static G4GeometryManager * GetInstance()
static G4SolidStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by G4GDMLMessenger::SetNewValue(), and ~G4SolidStore().
◆ DeRegister()
void G4SolidStore::DeRegister |
( |
G4VSolid * |
pSolid | ) |
|
|
static |
◆ GetInstance()
Definition at line 179 of file G4SolidStore.cc.
180{
182 if (!fgInstance)
183 {
184 fgInstance = &worldStore;
185 }
186 return fgInstance;
187}
Referenced by Clean(), DeRegister(), G4SurfaceVoxelizer::G4SurfaceVoxelizer(), G4VSolid::G4VSolid(), G4GDMLReadSolids::GetSolid(), GetSolid(), Register(), SetNotifier(), G4GeometryManager::SetWorldMaximumExtent(), G4GDMLRead::StripNames(), and G4VSolid::~G4VSolid().
◆ GetSolid()
Definition at line 158 of file G4SolidStore.cc.
159{
161 {
162 if ((*i)->GetName() == name) { return *i; }
163 }
164 if (verbose)
165 {
166 std::ostringstream message;
167 message <<
"Solid " << name <<
" not found in store !" <<
G4endl
168 << "Returning NULL pointer.";
171 }
172 return 0;
173}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by G4GDMLReadSolids::GetSolid().
◆ Register()
void G4SolidStore::Register |
( |
G4VSolid * |
pSolid | ) |
|
|
static |
◆ SetNotifier()
The documentation for this class was generated from the following files: