|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4SolidsWorkspace manages the per-thread state of thoese solids which have a per-thread state and dependent classes (if any). It takes ownership and control of per-thread state of classes to work with multi-threading. More...
#include <G4SolidsWorkspace.hh>
Public Types | |
| using | pool_type = G4TWorkspacePool<G4SolidsWorkspace> |
Public Member Functions | |
| G4SolidsWorkspace (G4bool verbose=false) | |
| ~G4SolidsWorkspace ()=default | |
| void | UseWorkspace () |
| void | ReleaseWorkspace () |
| void | DestroyWorkspace () |
| void | InitialiseWorkspace () |
| void | SetVerbose (G4bool v) |
| G4bool | GetVerbose () |
Static Public Member Functions | |
| static pool_type * | GetPool () |
G4SolidsWorkspace manages the per-thread state of thoese solids which have a per-thread state and dependent classes (if any). It takes ownership and control of per-thread state of classes to work with multi-threading.
Definition at line 60 of file G4SolidsWorkspace.hh.
Definition at line 64 of file G4SolidsWorkspace.hh.
| G4SolidsWorkspace::G4SolidsWorkspace | ( | G4bool | verbose = false | ) |
Constructor.
| [in] | verbose | Verbosity flag. |
Definition at line 48 of file G4SolidsWorkspace.cc.
|
default |
Default Destructor.
| void G4SolidsWorkspace::DestroyWorkspace | ( | ) |
Definition at line 119 of file G4SolidsWorkspace.cc.
Referenced by G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
|
static |
Accessor to the object pool.
Definition at line 46 of file G4SolidsWorkspace.cc.
Referenced by G4WorkerThread::BuildGeometryAndPhysicsVector(), G4WorkerThread::DestroyGeometryAndPhysicsVector(), G4VisManager::G4VisSubThread(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
|
inline |
Definition at line 94 of file G4SolidsWorkspace.hh.
| void G4SolidsWorkspace::InitialiseWorkspace | ( | ) |
Method to be called at start of each run (especially at the 2nd and further runs).
Definition at line 94 of file G4SolidsWorkspace.cc.
Referenced by G4SolidsWorkspace(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
| void G4SolidsWorkspace::ReleaseWorkspace | ( | ) |
Definition at line 82 of file G4SolidsWorkspace.cc.
|
inline |
Accessor/modifier for verbosity.
Definition at line 93 of file G4SolidsWorkspace.hh.
| void G4SolidsWorkspace::UseWorkspace | ( | ) |
Methods to achieve/release ownership.
Definition at line 66 of file G4SolidsWorkspace.cc.