19 #include <basic/options/option.hh>
23 #include <basic/options/keys/packstat.OptionKeys.gen.hh>
25 #include <utility/vector1.hh>
38 typedef pair<string const,string const>
P;
42 for(
size_t i = 0; i < s.size(); ++i ) s[i] = toupper( s[i] );
44 for(
size_t i = 0; i < s.size(); ++i ) s[i] = std::toupper( s[i] );
53 type_map[
P(type,res) ] = rad;
60 if( include_water < 0 ) {
61 using namespace basic::options;
62 include_water = option[ basic::options::OptionKeys::packstat::include_water ];
213 if( include_water ) {
251 if( type_map_.count(
P(type,res) ) )
252 return type_map_.find(
P(type,res) )->second;
253 if( type_map_.count(
P(type,
"*") ) )
254 return type_map_.find(
P(type,
"*") )->second;
255 if( type_map_.count(
P(
"*" ,res) ) )
256 return type_map_.find(
P(
"*" ,res) )->second;
258 if(
'H' == type[1] &&
'0' <= type[0] && type[0] <=
'9' )
return HYDROGEN_RADIUS;
260 if( type.size() > 1 ) {
261 type = type.substr(0,type.size()-1);
262 return get_radius(type,res);