G4PhysicsConstructorFactory< T > Class Template Reference

#include <G4PhysicsConstructorFactory.hh>

Inheritance diagram for G4PhysicsConstructorFactory< T >:

G4VBasePhysConstrFactory

Public Member Functions

 G4PhysicsConstructorFactory (const G4String &name)
virtual G4VPhysicsConstructorInstantiate ()

Detailed Description

template<typename T>
class G4PhysicsConstructorFactory< T >

Definition at line 44 of file G4PhysicsConstructorFactory.hh.


Constructor & Destructor Documentation

template<typename T>
G4PhysicsConstructorFactory< T >::G4PhysicsConstructorFactory ( const G4String name  )  [inline]

Definition at line 48 of file G4PhysicsConstructorFactory.hh.

References G4PhysicsConstructorRegistry::AddFactory(), and G4PhysicsConstructorRegistry::Instance().

00049   {
00050     G4PhysicsConstructorRegistry::Instance()->AddFactory(name, this);
00051   }


Member Function Documentation

template<typename T>
virtual G4VPhysicsConstructor* G4PhysicsConstructorFactory< T >::Instantiate (  )  [inline, virtual]

Implements G4VBasePhysConstrFactory.

Definition at line 53 of file G4PhysicsConstructorFactory.hh.

00054   {
00055     return new T();
00056   }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:54 2013 for Geant4 by  doxygen 1.4.7