3 #include <boost/functional/hash.hpp>
11 cout <<
"PdbParameterMap::print - Hash 0x"<<std::hex << get_hash()<<std::dec<<endl;
13 cout <<
"double parameters: " << endl;
14 for (map<const string, double>::const_iterator iter = dparams.begin(); iter != dparams.end(); ++iter)
16 cout << iter->first <<
": " << iter->second << endl;
18 cout <<
"integer parameters: " << endl;
19 for (map<const string, int>::const_iterator iter = iparams.begin(); iter != iparams.end(); ++iter)
21 cout << iter->first <<
": " << iter->second << endl;
23 cout <<
"string parameters: " << endl;
24 for (map<const string, string>::const_iterator iter = cparams.begin(); iter != cparams.end(); ++iter)
26 cout << iter->first <<
": " << iter->second << endl;
63 for (dMap::const_iterator iter = dparams.begin();
64 iter != dparams.end(); ++iter)
67 boost::hash_combine(seed, iter->first );
68 boost::hash_combine(seed, iter->second );
72 for (iMap::const_iterator iter = iparams.begin();
73 iter != iparams.end(); ++iter)
76 boost::hash_combine(seed, iter->first );
77 boost::hash_combine(seed, iter->second );
81 for (strMap::const_iterator iter = cparams.begin();
82 iter != cparams.end(); ++iter)
85 boost::hash_combine(seed, iter->first );
86 boost::hash_combine(seed, iter->second );
size_t get_hash() const
hash of binary information for checking purpose
void set_double_param(const std::string &name, const double dval)
void set_int_param(const std::string &name, const int ival)
void set_string_param(const std::string &name, const std::string &str)