| 908 | } |
| 909 | |
| 910 | ProbName |
| 911 | Probabilities::get_pname(const string &sname) |
| 912 | { |
| 913 | std::map<std::string, ProbName>::iterator i = sname_to_pname_.find(sname); |
| 914 | if (i == sname_to_pname_.end()) |
| 915 | assert("invalid string in the configuration file:" && sname.c_str() && 0); |
| 916 | return (*i).second; |
| 917 | } |
| 918 | |
| 919 | std::string |
| 920 | Probabilities::get_sname(ProbName pname) |