51 HasName(
const G4String& name): fName(name) {};
52 bool operator()(
const T& value)
const
53 {
return value.GetName() == fName;}
64 const std::map<G4String, G4AttDef>* attDefs =
object.GetAttDefs();
66 std::map<G4String, G4AttDef>::const_iterator iter = attDefs->find(name);
67 if (iter == attDefs->end())
return false;
78 std::vector<G4AttValue>* attValues =
object.CreateAttValues();
80 std::vector<G4AttValue>::iterator iter = std::find_if(attValues->begin(), attValues->end(),
81 HasName<G4AttValue>(name));
82 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)