#include <G4CrossSectionFactoryRegistry.hh>
◆ G4CrossSectionFactoryRegistry() [1/2]
G4CrossSectionFactoryRegistry::G4CrossSectionFactoryRegistry |
( |
| ) |
|
|
private |
◆ G4CrossSectionFactoryRegistry() [2/2]
Definition at line 52 of file G4CrossSectionFactoryRegistry.cc.
54 G4Exception(
"G4CrossSectionFactoryRegistry::G4CrossSectionFactoryRegistry",
55 "CrossSection004",
FatalException,
"Use of copy constructor not allowed");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ GetFactory()
Definition at line 78 of file G4CrossSectionFactoryRegistry.cc.
81 std::map<G4String,G4VBaseXSFactory*>::const_iterator it =
factories.find(name);
82 if ( it !=
factories.end() )
return it->second;
85 if ( abortIfNotFound )
88 msg <<
"Cross section factory with name: "<<name
90 G4Exception(
"G4CrossSectionFactoryRegistry::Register(...)",
std::ostringstream G4ExceptionDescription
std::map< G4String, G4VBaseXSFactory * > factories
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ Instance()
◆ operator=()
Definition at line 57 of file G4CrossSectionFactoryRegistry.cc.
59 G4Exception(
"G4CrossSectionFactoryRegistry::G4CrossSectionFactoryRegistry",
60 "CrossSection004",
FatalException,
"Use of assignement operator not allowed");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ Register()
Definition at line 64 of file G4CrossSectionFactoryRegistry.cc.
70 msg <<
"Cross section factory with name: "<<name
71 <<
" already existing, old factory has been replaced";
72 G4Exception(
"G4CrossSectionFactoryRegistry::Register(...)",
std::ostringstream G4ExceptionDescription
std::map< G4String, G4VBaseXSFactory * > factories
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ operator<<
Definition at line 98 of file G4CrossSectionFactoryRegistry.cc.
99 msg<<
"Factory Registry "<<&rhs<<
" has factories: [";
100 for ( std::map<G4String,G4VBaseXSFactory*>::const_iterator it =rhs.factories.begin() ;
101 it != rhs.factories.end() ; ++it )
103 msg<<(*it).first<<
":"<<(*it).second<<
",";
◆ factories
◆ instance
The documentation for this class was generated from the following files: