G4CrossSectionFactory< T > Class Template Reference

#include <G4CrossSectionFactory.hh>

Inheritance diagram for G4CrossSectionFactory< T >:

G4VBaseXSFactory

Public Member Functions

 G4CrossSectionFactory (const G4String &name)
virtual G4VCrossSectionDataSetInstantiate ()

Detailed Description

template<typename T>
class G4CrossSectionFactory< T >

Definition at line 44 of file G4CrossSectionFactory.hh.


Constructor & Destructor Documentation

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

Definition at line 48 of file G4CrossSectionFactory.hh.

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

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


Member Function Documentation

template<typename T>
virtual G4VCrossSectionDataSet* G4CrossSectionFactory< T >::Instantiate (  )  [inline, virtual]

Implements G4VBaseXSFactory.

Definition at line 53 of file G4CrossSectionFactory.hh.

00054   {
00055     return new T();
00056   }


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