| 104 | } |
| 105 | |
| 106 | void 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 | |
| 117 | void AnnotationList::removeGroup(std::string name) { |
| 118 | for (std::vector<std::shared_ptr<AnnotationGroup> >::iterator it = _groups.begin(); it != _groups.end(); ++it) { |
no test coverage detected