Geant4  10.02
G4PhysicsConstructorRegistry Class Reference

#include <G4PhysicsConstructorRegistry.hh>

+ Collaboration diagram for G4PhysicsConstructorRegistry:

Public Member Functions

 ~G4PhysicsConstructorRegistry ()
 
void Register (G4VPhysicsConstructor *)
 
void DeRegister (G4VPhysicsConstructor *)
 
void Clean ()
 
void AddFactory (G4String, G4VBasePhysConstrFactory *)
 
G4VPhysicsConstructorGetPhysicsConstructor (const G4String &name)
 
G4bool IsKnownPhysicsConstructor (const G4String &name)
 
std::vector< G4StringAvailablePhysicsConstructors () const
 
void PrintAvailablePhysicsConstructors () const
 

Static Public Member Functions

static
G4PhysicsConstructorRegistry
Instance ()
 

Private Member Functions

 G4PhysicsConstructorRegistry ()
 

Private Attributes

std::vector
< G4VPhysicsConstructor * > 
physConstr
 
std::map< G4String,
G4VBasePhysConstrFactory * > 
factories
 

Static Private Attributes

static G4ThreadLocal
G4PhysicsConstructorRegistry
theInstance = 0
 

Detailed Description

Definition at line 57 of file G4PhysicsConstructorRegistry.hh.

Constructor & Destructor Documentation

G4PhysicsConstructorRegistry::~G4PhysicsConstructorRegistry ( )

Definition at line 62 of file G4PhysicsConstructorRegistry.cc.

References Clean().

+ Here is the call graph for this function:

G4PhysicsConstructorRegistry::G4PhysicsConstructorRegistry ( )
private

Definition at line 59 of file G4PhysicsConstructorRegistry.cc.

Referenced by Instance().

+ Here is the caller graph for this function:

Member Function Documentation

void G4PhysicsConstructorRegistry::AddFactory ( G4String  name,
G4VBasePhysConstrFactory factory 
)

Definition at line 108 of file G4PhysicsConstructorRegistry.cc.

References factories, and name.

Referenced by G4PhysicsConstructorFactory< T >::G4PhysicsConstructorFactory().

+ Here is the caller graph for this function:

std::vector< G4String > G4PhysicsConstructorRegistry::AvailablePhysicsConstructors ( ) const

Definition at line 140 of file G4PhysicsConstructorRegistry.cc.

References factories.

Referenced by PrintAvailablePhysicsConstructors().

+ Here is the caller graph for this function:

void G4PhysicsConstructorRegistry::Clean ( )

Definition at line 67 of file G4PhysicsConstructorRegistry.cc.

References n, and physConstr.

Referenced by ~G4PhysicsConstructorRegistry().

+ Here is the caller graph for this function:

void G4PhysicsConstructorRegistry::DeRegister ( G4VPhysicsConstructor p)

Definition at line 94 of file G4PhysicsConstructorRegistry.cc.

References n, and physConstr.

G4VPhysicsConstructor * G4PhysicsConstructorRegistry::GetPhysicsConstructor ( const G4String name)

Definition at line 113 of file G4PhysicsConstructorRegistry.cc.

References factories, FatalException, G4endl, G4Exception(), and name.

Referenced by G4PhysListRegistry::GetModularPhysicsList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4PhysicsConstructorRegistry * G4PhysicsConstructorRegistry::Instance ( void  )
static

Definition at line 50 of file G4PhysicsConstructorRegistry.cc.

References G4PhysicsConstructorRegistry(), G4ThreadLocal, and theInstance.

Referenced by G4PhysListRegistry::DeconstructPhysListName(), G4PhysicsConstructorFactory< T >::G4PhysicsConstructorFactory(), G4PhysListRegistry::GetModularPhysicsList(), G4PhysListRegistry::PrintAvailablePhysLists(), PhysicsList::RegisterConstructor(), and TG4GenericPhysicsList< T >::RegisterPhysicsConstructor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PhysicsConstructorRegistry::IsKnownPhysicsConstructor ( const G4String name)

Definition at line 134 of file G4PhysicsConstructorRegistry.cc.

References factories.

Referenced by G4PhysListRegistry::DeconstructPhysListName(), and G4PhysListRegistry::PrintAvailablePhysLists().

+ Here is the caller graph for this function:

void G4PhysicsConstructorRegistry::PrintAvailablePhysicsConstructors ( ) const

Definition at line 151 of file G4PhysicsConstructorRegistry.cc.

References AvailablePhysicsConstructors(), G4cout, G4endl, and n.

+ Here is the call graph for this function:

void G4PhysicsConstructorRegistry::Register ( G4VPhysicsConstructor p)

Definition at line 82 of file G4PhysicsConstructorRegistry.cc.

References n, and physConstr.

Member Data Documentation

std::map<G4String, G4VBasePhysConstrFactory*> G4PhysicsConstructorRegistry::factories
private
std::vector<G4VPhysicsConstructor*> G4PhysicsConstructorRegistry::physConstr
private

Definition at line 91 of file G4PhysicsConstructorRegistry.hh.

Referenced by Clean(), DeRegister(), and Register().

G4ThreadLocal G4PhysicsConstructorRegistry * G4PhysicsConstructorRegistry::theInstance = 0
staticprivate

Definition at line 89 of file G4PhysicsConstructorRegistry.hh.

Referenced by Instance().


The documentation for this class was generated from the following files: