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