50 HasName(
const G4String& name): fName(name) {};
51 bool operator()(
const T& value)
const
52 {
return value.GetName() == fName;}
63 const std::map<G4String, G4AttDef>* attDefs =
object.GetAttDefs();
65 std::map<G4String, G4AttDef>::const_iterator iter = attDefs->find(name);
66 if (iter == attDefs->end())
return false;
77 std::vector<G4AttValue>* attValues =
object.CreateAttValues();
79 std::vector<G4AttValue>::iterator iter = std::find_if(attValues->begin(), attValues->end(),
80 HasName<G4AttValue>(name));
81 if (iter == attValues->end())
return false;
G4bool ExtractAttDef(const T &object, const G4String &name, G4AttDef &def)
G4TypeKey GetKey(const G4AttDef &def)
G4bool ExtractAttValue(const T &object, const G4String &name, G4AttValue &attVal)