-/*! \fn int SamSequenceDictionary::IndexOf(const std::string& name) const
- \internal
- \return index of sequence if found (matching on name). Otherwise, returns vector::size() (invalid index).
-*/
-int SamSequenceDictionary::IndexOf(const std::string& name) const {
- SamSequenceConstIterator begin = ConstBegin();
- SamSequenceConstIterator iter = begin;
- SamSequenceConstIterator end = ConstEnd();
- for ( ; iter != end; ++iter ) {
- const SamSequence& currentSeq = (*iter);
- if ( currentSeq.Name == name )
- break;
- }
- return distance( begin, iter );
-}
-