MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getAnnotation

Method getAnnotation

annotation/AnnotationList.cpp:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::shared_ptr<Annotation> AnnotationList::getAnnotation(const int& index) {
71 if (index < 0) {
72 return *(_annotations.end() - abs(index));
73 }
74 else {
75 return *(_annotations.begin() + index);
76 }
77}
78
79std::shared_ptr<Annotation> AnnotationList::getAnnotation(std::string name) {
80 for (std::vector<std::shared_ptr<Annotation> >::const_iterator it = _annotations.begin(); it != _annotations.end(); ++it) {

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.80

Tested by

no test coverage detected