33 namespace G4AttDefStore {
36 std::map<G4String,std::map<G4String,G4AttDef>*> *
m_defsmaps = 0;
38 std::map<G4String,G4AttDef>*
42 m_defsmaps =
new std::map<G4String,std::map<G4String,G4AttDef>*>;
47 std::map<G4String,G4AttDef>* definitions;
48 std::map<G4String,std::map<G4String,G4AttDef>*>::iterator iDefinitions =
54 definitions =
new std::map<G4String,G4AttDef>;
55 (*m_defsmaps)[storeKey] = definitions;
60 definitions = iDefinitions->second;
66 (
const std::map<G4String,G4AttDef>* definitions,
G4String& key)
69 m_defsmaps =
new std::map<G4String,std::map<G4String,G4AttDef>*>;
70 std::map<G4String,std::map<G4String,G4AttDef>*>::const_iterator i;
73 if (i->second == definitions)
G4bool GetStoreKey(const std::map< G4String, G4AttDef > *definitions, G4String &key)
G4ThreadLocal std::map< G4String, std::map< G4String, G4AttDef > * > * m_defsmaps
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)