| 50 | } |
| 51 | |
| 52 | std::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 | |
| 61 | std::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) { |