MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / checkAndGetTermByName

Method checkAndGetTermByName

src/openms/source/FORMAT/ControlledVocabulary.cpp:481–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

writeUserParam_Method · 0.80

Calls 3

atMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected