13 inline T*
find_named(
const std::vector<T*>& a_vec,
const std::string& a_name) {
14 typedef typename std::vector<T*>::const_iterator it_t;
16 for(it=a_vec.begin();it!=a_vec.end();++it) {
17 if((*it)->name()==a_name)
return *it;
23 inline const T*
find_obj_named(
const std::vector<T>& a_vec,
const std::string& a_name) {
24 typedef typename std::vector<T>::const_iterator it_t;
26 for(it=a_vec.begin();it!=a_vec.end();++it) {
27 if((*it).name()==a_name)
return &(*it);
33 typedef typename std::vector<T>::iterator it_t;
35 for(it=a_vec.begin();it!=a_vec.end();++it) {
36 if((*it).name()==a_name)
return &(*it);
49 std::string low_a_name = a_name;
52 typedef typename std::vector<T*>::const_iterator it_t;
54 for(it=a_vec.begin();it!=a_vec.end();++it) {
55 low_name = (*it)->name();
57 if(low_name==low_a_name)
return *it;