32 #ifdef G4MULTITHREADED
38 G4PhysicsModelCatalog::G4PhysicsModelCatalog()
41 G4PhysicsModelCatalog::~G4PhysicsModelCatalog()
42 {
delete catalog; catalog = 0; }
47 if(idx>=0)
return idx;
48 #ifdef G4MULTITHREADED
51 catalog->push_back(name);
52 return catalog->size()-1;
59 if(idx>=0 && idx<
Entries())
return (*catalog)[idx];
67 {
if((*catalog)[idx]==
name)
return idx; }
72 {
return (catalog) ?
G4int(catalog->size()) : -1; }
76 #ifdef G4MULTITHREADED
79 if(catalog)
delete catalog;
static G4int GetIndex(G4String &)
static G4String & GetModelName(G4int)
std::vector< G4String > modelCatalog
static G4int Register(G4String &)