38 if(0 == theInstance) {
40 theInstance = &manager;
45G4HadronicInteractionRegistry::G4HadronicInteractionRegistry()
55 size_t nModels = allModels.size();
58 for (
size_t i=0; i<nModels; ++i) {
75 if(!aModel) {
return; }
76 size_t nModels = allModels.size();
78 for (
size_t i=0; i<nModels; ++i) {
79 if( aModel == allModels[i] ) {
return; }
84 allModels.push_back(aModel);
90 if(!aModel) {
return; }
91 size_t nModels = allModels.size();
92 if(0 == nModels) {
return; }
93 for (
size_t i=0; i<nModels; ++i) {
94 if( aModel == allModels[i] ) {
108 size_t nModels = allModels.size();
109 for (
size_t i=0; i<nModels; ++i) {
void RegisterMe(G4HadronicInteraction *aModel)
~G4HadronicInteractionRegistry()
void RemoveMe(G4HadronicInteraction *aModel)
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
const G4String & GetModelName() const