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

Method removeGroup

annotation/AnnotationList.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void AnnotationList::removeGroup(const int& index) {
107 if (index < 0) {
108 (_groups.end() - abs(index))->reset();
109 _groups.erase(_groups.end() - abs(index));
110 }
111 else {
112 (_groups.begin() + index)->reset();
113 _groups.erase(_groups.begin() + index);
114 }
115}
116
117void AnnotationList::removeGroup(std::string name) {
118 for (std::vector<std::shared_ptr<AnnotationGroup> >::iterator it = _groups.begin(); it != _groups.end(); ++it) {

Callers 1

deleteAnnotationGroupMethod · 0.80

Calls 1

getNameMethod · 0.80

Tested by

no test coverage detected