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

Method getGroup

annotation/AnnotationList.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::shared_ptr<AnnotationGroup> AnnotationList::getGroup(const int& index) {
53 if (index < 0) {
54 return *(_groups.end() - abs(index));
55 }
56 else {
57 return *(_groups.begin() + index);
58 }
59}
60
61std::shared_ptr<AnnotationGroup> AnnotationList::getGroup(std::string name) {
62 for (std::vector<std::shared_ptr<AnnotationGroup> >::const_iterator it = _groups.begin(); it != _groups.end(); ++it) {

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.80

Tested by

no test coverage detected