37 #include "G4String.hh"
42 namespace G4AttUtils {
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;