| 124 | } |
| 125 | |
| 126 | void AnnotationList::removeAnnotation(const int& index) { |
| 127 | if (index < 0) { |
| 128 | (_annotations.end() - abs(index))->reset(); |
| 129 | _annotations.erase(_annotations.end() - abs(index)); |
| 130 | } |
| 131 | else { |
| 132 | (_annotations.begin() + index)->reset(); |
| 133 | _annotations.erase(_annotations.begin() + index); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | void AnnotationList::removeAnnotation(std::string name) { |
| 138 | for (std::vector<std::shared_ptr<Annotation> >::iterator it = _annotations.begin(); it != _annotations.end(); ++it) { |
no test coverage detected