|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4AssemblyStore is a container for all assemblies, with functionality derived from std::vector<T>. The class is a singleton. All assemblies are registered with G4AssemblyStore, and removed on their destruction. More...
#include <G4AssemblyStore.hh>
Public Member Functions | |
| G4AssemblyVolume * | GetAssembly (unsigned int id, G4bool verbose=true) const |
Static Public Member Functions | |
| static void | Register (G4AssemblyVolume *pAssembly) |
| static void | DeRegister (G4AssemblyVolume *pAssembly) |
| static G4AssemblyStore * | GetInstance () |
| static void | SetNotifier (G4VStoreNotifier *pNotifier) |
| static void | Clean () |
G4AssemblyStore is a container for all assemblies, with functionality derived from std::vector<T>. The class is a singleton. All assemblies are registered with G4AssemblyStore, and removed on their destruction.
Definition at line 61 of file G4AssemblyStore.hh.
|
static |
Deletes all assemblies from the store.
Definition at line 69 of file G4AssemblyStore.cc.
Referenced by G4RunManager::ReinitializeGeometry().
|
static |
Removes the assembly from the collection.
Definition at line 121 of file G4AssemblyStore.cc.
Referenced by G4AssemblyVolume::~G4AssemblyVolume().
| G4AssemblyVolume * G4AssemblyStore::GetAssembly | ( | unsigned int | id, |
| G4bool | verbose = true ) const |
Returns an assembly through its Id number specification.
Definition at line 156 of file G4AssemblyStore.cc.
Referenced by G4GDMLWriteStructure::AssemblyWrite(), G4AssemblyVolume::G4AssemblyVolume(), G4AssemblyVolume::G4AssemblyVolume(), and G4GDMLWriteStructure::TraverseVolumeTree().
|
static |
Gets a pointer to the unique G4AssemblyStore, creating it if necessary.
Definition at line 141 of file G4AssemblyStore.cc.
Referenced by G4GDMLWriteStructure::AssemblyWrite(), Clean(), DeRegister(), G4AssemblyVolume::G4AssemblyVolume(), G4AssemblyVolume::G4AssemblyVolume(), GetAssembly(), Register(), G4RunManager::ReinitializeGeometry(), SetNotifier(), G4GDMLWriteStructure::StructureWrite(), G4GDMLWriteStructure::TraverseVolumeTree(), and G4AssemblyVolume::~G4AssemblyVolume().
|
static |
Adds the assembly to the collection.
Definition at line 111 of file G4AssemblyStore.cc.
Referenced by G4AssemblyVolume::G4AssemblyVolume(), and G4AssemblyVolume::G4AssemblyVolume().
|
static |
Assigns a notifier for allocation/deallocation of assemblies.
Definition at line 101 of file G4AssemblyStore.cc.