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();
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 auto iter = std::find_if(attValues->cbegin(), attValues->cend(),
81 HasName<G4AttValue>(name));
82 if (iter == attValues->cend())
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)