| 479 | } |
| 480 | |
| 481 | const ControlledVocabulary::CVTerm* ControlledVocabulary::checkAndGetTermByName(const OpenMS::String& name) const |
| 482 | { |
| 483 | std::map<String, String>::const_iterator it = namesToIds_.find(name); |
| 484 | if (it == namesToIds_.end()) return nullptr; |
| 485 | return &terms_.at(it->second); |
| 486 | } |
| 487 | |
| 488 | bool ControlledVocabulary::hasTermWithName(const OpenMS::String& name) const |
| 489 | { |
no test coverage detected