Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find(), ConstFind() dictionary methods, .gitignore #89

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

douglasgscofield
Copy link

For SamSequenceDictionary, adds a Find(), Find() const, and equivalent ConstFind() method to return iterators into the sequence dictionary.

Also adds a .gitignore, feel free to ignore that...

Also DOS-to-Unixify BamReader.h endlines and remove an extra set of
parens in bamtools.cpp
Also initiate README.md for this fork
…onary

With my addition of BamReader::GetConstSamHeader(), the operator[] method for querying SamSequenceDictionary no longer worked as it couldn't handle a const this.  Since it had a default not-found behavior of adding the query name, I think these Find() iterator-based methods, as parallels to the find() methods of map containers are better with read-only access.  The End() iterator is returned if sequenceName is not found.
Conflicts:
	CMakeLists.txt
	src/api/BamReader.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant