Classes | Macros | Typedefs
G4PhysicsProcessFactorySingleton.hh File Reference
#include "Geant4/G4VPhysicsConstructor.hh"
#include "Geant4/globals.hh"

Go to the source code of this file.

Classes

class  G4PhysicsProcessFactorySingleton
 
struct  G4PhysicsProcessFactorySingleton::Cleaner
 

Macros

#define PHYSPROCREG(_name)
 
#define PHYSPROCREG3(_ns, _name, _fqname)
 

Typedefs

typedef G4VPhysicsConstructor *(* PhysProcCtorFuncPtr_t) ()
 

Macro Definition Documentation

#define PHYSPROCREG (   _name)
Value:
G4VPhysicsConstructor* _name ## _ctor_function () { return new _name; } \
static G4bool _name ## _creator_registered = \
G4PhysicsProcessFactorySingleton::Instance().RegisterCreator(# _name, \
& _name ## _ctor_function, \
& _name ## _creator_registered );

Definition at line 144 of file G4PhysicsProcessFactorySingleton.hh.

#define PHYSPROCREG3 (   _ns,
  _name,
  _fqname 
)
Value:
namespace _ns { \
G4VPhysicsConstructor* _name ## _ctor_function () { return new _fqname; } \
static G4bool _name ## _creator_registered = \
G4PhysicsProcessFactorySingleton::Instance().RegisterCreator(# _fqname, \
& _fqname ## _ctor_function, \
& _fqname ## _creator_registered );}

Definition at line 151 of file G4PhysicsProcessFactorySingleton.hh.

Typedef Documentation

typedef G4VPhysicsConstructor*(* PhysProcCtorFuncPtr_t) ()

Definition at line 55 of file G4PhysicsProcessFactorySingleton.hh.