Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -33,4 +33,25 @@ inline const T* find_named_(const std::vector<T>& a_vec,const std::string& a_nam
}
#include "touplow"
namespace tools {
template <class T>
inline T* find_named_case_insensitive(const std::vector<T*>& a_vec,const std::string& a_name) {
std::string low_a_name = a_name;
tolowercase(low_a_name);
std::string low_name;
typedef typename std::vector<T*>::const_iterator it_t;
it_t it;
for(it=a_vec.begin();it!=a_vec.end();++it) {
low_name = (*it)->name();
tolowercase(low_name);
if(low_name==low_a_name) return *it;
}
return 0;
}
}
#endif