26#ifndef G4CrossSectionFactory_h
27#define G4CrossSectionFactory_h 1
64 msg<<
"Factory mode: "<<mode<<
" not supported!";
66 return static_cast<T*
>(0);
99 static T* shared =
new T();
121#define G4_BASE_DECLARE_XS_FACTORY(cross_section, flag) \
122 const G4CrossSectionFactory<cross_section,flag>& cross_section##Factory = G4CrossSectionFactory<cross_section,flag>(cross_section::Default_Name())
124#define G4_BASE_REFERENCE_XS_FACTORY(cross_section,flag) \
125 class cross_section; \
126 extern const G4CrossSectionFactory<cross_section,flag>& cross_section##Factory; \
127 const G4CrossSectionFactory<cross_section,flag>& cross_section##FactoryRef = cross_section##Factory
130#define G4_DECLARE_XS_FACTORY(cross_section) G4_BASE_DECLARE_XS_FACTORY(cross_section,0)
131#define G4_DECLARE_SHAREDXS_FACTORY(cross_section) G4_BASE_DECLARE_XS_FACTORY(cross_section,1)
132#define G4_DECLARE_SHAREDTLSXS_FACTORY(cross_section) G4_BASE_DECLARE_XS_FACTORY(cross_section,2)
135#define G4_REFERENCE_XS_FACTORY(cross_section) G4_BASE_REFERENCE_XS_FACTORY(cross_section,0)
136#define G4_REFERENCE_SHAREDXS_FACTORY(cross_section) G4_BASE_REFERENCE_XS_FACTORY(cross_section,1)
137#define G4_REFERENCE_SHAREDTLSXS_FACTORY(cross_section) G4_BASE_REFERENCE_XS_FACTORY(cross_section,2)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static G4CrossSectionFactoryRegistry * Instance()
G4VCrossSectionDataSet * Instantiate() override
G4CrossSectionFactory(const G4String &name)
G4CrossSectionFactory(const G4String &name)
G4VCrossSectionDataSet * Instantiate() override
G4VCrossSectionDataSet * Instantiate() override
G4CrossSectionFactory(const G4String &name)
G4CrossSectionFactoryRegistry * fRegistry
virtual G4VCrossSectionDataSet * Instantiate()=0
virtual ~G4VBaseXSFactory()=default