Geant4-11
|
#include <G4SolidStore.hh>
Public Member Functions | |
G4SolidStore (const G4SolidStore &)=delete | |
const std::map< G4String, std::vector< G4VSolid * > > & | GetMap () const |
G4VSolid * | GetSolid (const G4String &name, G4bool verbose=true, G4bool reverseSearch=false) const |
G4bool | IsMapValid () const |
G4SolidStore & | operator= (const G4SolidStore &)=delete |
void | SetMapValid (G4bool val) |
void | UpdateMap () |
virtual | ~G4SolidStore () |
Static Public Member Functions | |
static void | Clean () |
static void | DeRegister (G4VSolid *pSolid) |
static G4SolidStore * | GetInstance () |
static void | Register (G4VSolid *pSolid) |
static void | SetNotifier (G4VStoreNotifier *pNotifier) |
Protected Member Functions | |
G4SolidStore () | |
Private Attributes | |
std::map< G4String, std::vector< G4VSolid * > > | bmap |
G4bool | mvalid = false |
Static Private Attributes | |
static G4SolidStore * | fgInstance = nullptr |
static G4ThreadLocal G4VStoreNotifier * | fgNotifier = nullptr |
static G4ThreadLocal G4bool | locked = false |
Definition at line 54 of file G4SolidStore.hh.
|
virtual |
Definition at line 65 of file G4SolidStore.cc.
References Clean().
|
delete |
|
protected |
Definition at line 55 of file G4SolidStore.cc.
|
static |
Definition at line 74 of file G4SolidStore.cc.
References bmap, fgNotifier, G4cout, G4endl, GetInstance(), G4GeometryManager::IsGeometryClosed(), locked, mvalid, G4VNotifier::NotifyDeRegistration(), and pos.
Referenced by ExN03DetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructVolumes(), G4RunManager::ReinitializeGeometry(), and ~G4SolidStore().
|
static |
Definition at line 179 of file G4SolidStore.cc.
References bmap, fgNotifier, GetInstance(), G4VSolid::GetName(), locked, mvalid, and G4VNotifier::NotifyDeRegistration().
Referenced by G4Voxelizer::G4Voxelizer(), and G4VSolid::~G4VSolid().
|
static |
Definition at line 262 of file G4SolidStore.cc.
References fgInstance.
Referenced by Clean(), ExN03DetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructVolumes(), DeRegister(), G4ScoringCylinder::DumpSolids(), G4Voxelizer::G4Voxelizer(), G4VSolid::G4VSolid(), G4GDMLReadSolids::GetSolid(), GetSolid(), Register(), G4RunManager::ReinitializeGeometry(), G4VSolid::SetName(), SetNotifier(), G4GeometryManager::SetWorldMaximumExtent(), G4GDMLRead::StripNames(), UpdateMap(), and G4VSolid::~G4VSolid().
G4VSolid * G4SolidStore::GetSolid | ( | const G4String & | name, |
G4bool | verbose = true , |
||
G4bool | reverseSearch = false |
||
) | const |
Definition at line 221 of file G4SolidStore.cc.
References bmap, G4endl, G4Exception(), GetInstance(), JustWarning, mvalid, G4InuclParticleNames::name(), pos, and UpdateMap().
Referenced by G4GDMLReadSolids::GetSolid().
|
inline |
|
delete |
|
static |
Definition at line 156 of file G4SolidStore.cc.
References bmap, fgNotifier, GetInstance(), G4VSolid::GetName(), mvalid, and G4VNotifier::NotifyRegistration().
Referenced by G4VSolid::G4VSolid().
|
inline |
Definition at line 76 of file G4SolidStore.hh.
References mvalid.
Referenced by G4VSolid::SetName().
|
static |
Definition at line 119 of file G4SolidStore.cc.
References fgNotifier, and GetInstance().
void G4SolidStore::UpdateMap | ( | ) |
Definition at line 129 of file G4SolidStore.cc.
References bmap, GetInstance(), anonymous_namespace{G4SolidStore.cc}::mapMutex, mvalid, pos, and G4TemplateAutoLock< _Mutex_t >::unlock().
Referenced by GetSolid(), and G4GDMLRead::StripNames().
Definition at line 101 of file G4SolidStore.hh.
Referenced by Clean(), DeRegister(), GetMap(), GetSolid(), Register(), and UpdateMap().
|
staticprivate |
Definition at line 97 of file G4SolidStore.hh.
Referenced by GetInstance().
|
staticprivate |
Definition at line 98 of file G4SolidStore.hh.
Referenced by Clean(), DeRegister(), Register(), and SetNotifier().
|
staticprivate |
Definition at line 99 of file G4SolidStore.hh.
Referenced by Clean(), and DeRegister().
|
private |
Definition at line 102 of file G4SolidStore.hh.
Referenced by Clean(), DeRegister(), GetSolid(), IsMapValid(), Register(), SetMapValid(), and UpdateMap().