Geant4-11
Data Structures | Macros
G4PhysicsConstructorFactory.hh File Reference
#include "globals.hh"
#include "G4PhysicsConstructorRegistry.hh"
#include "G4VPhysicsConstructor.hh"

Go to the source code of this file.

Data Structures

class  G4PhysicsConstructorFactory< T >
 
class  G4VBasePhysConstrFactory
 

Macros

#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)    const G4PhysicsConstructorFactory<physics_constructor>& physics_constructor##Factory = G4PhysicsConstructorFactory<physics_constructor>(#physics_constructor)
 
#define G4_DECLARE_PHYSCONSTR_FACTORY_NS(physics_constructor, nsname, pcbase)
 
#define G4_REFERENCE_PHYSCONSTR_FACTORY(physics_constructor)
 
#define G4_REFERENCE_PHYSCONSTR_FACTORY_NS(physics_constructor, nsname, pcbase)
 
#define REGREF   0
 

Macro Definition Documentation

◆ G4_DECLARE_PHYSCONSTR_FACTORY

#define G4_DECLARE_PHYSCONSTR_FACTORY (   physics_constructor)     const G4PhysicsConstructorFactory<physics_constructor>& physics_constructor##Factory = G4PhysicsConstructorFactory<physics_constructor>(#physics_constructor)

Definition at line 59 of file G4PhysicsConstructorFactory.hh.

◆ G4_DECLARE_PHYSCONSTR_FACTORY_NS

#define G4_DECLARE_PHYSCONSTR_FACTORY_NS (   physics_constructor,
  nsname,
  pcbase 
)
Value:
namespace nsname { \
} \
typedef int xyzzy__LINE__

Definition at line 65 of file G4PhysicsConstructorFactory.hh.

◆ G4_REFERENCE_PHYSCONSTR_FACTORY

#define G4_REFERENCE_PHYSCONSTR_FACTORY (   physics_constructor)
Value:
class physics_constructor; \
extern const G4PhysicsConstructorFactory<physics_constructor>& physics_constructor##Factory; \
const G4PhysicsConstructorFactory<physics_constructor>& physics_constructor##FactoryRef##REGREF = physics_constructor##Factory
#define REGREF

Definition at line 83 of file G4PhysicsConstructorFactory.hh.

◆ G4_REFERENCE_PHYSCONSTR_FACTORY_NS

#define G4_REFERENCE_PHYSCONSTR_FACTORY_NS (   physics_constructor,
  nsname,
  pcbase 
)
Value:
namespace nsname { \
class pcbase; \
extern const G4PhysicsConstructorFactory<physics_constructor>& pcbase##Factory; \
const G4PhysicsConstructorFactory<physics_constructor>& pcbase##FactoryRef##REGREF = pcbase##Factory; \
} \
typedef int xyzzy__LINE__

Definition at line 88 of file G4PhysicsConstructorFactory.hh.

◆ REGREF

#define REGREF   0

Definition at line 80 of file G4PhysicsConstructorFactory.hh.