| 68 | } |
| 69 | |
| 70 | std::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 | |
| 79 | std::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) { |