X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FSamReadGroupDictionary.h;h=c66c6d5b233dee35648bfaf4b65d01ec257a9f0b;hb=af6a3d8491e485969d2df306e41cb9439dec4039;hp=328763a61f72dddb6d674381ed801ae1e2e392a5;hpb=c1fc1c5423ca73a1b5bcbe790650821d73e5959c;p=bamtools.git diff --git a/src/api/SamReadGroupDictionary.h b/src/api/SamReadGroupDictionary.h index 328763a..c66c6d5 100644 --- a/src/api/SamReadGroupDictionary.h +++ b/src/api/SamReadGroupDictionary.h @@ -2,7 +2,7 @@ // SamReadGroupDictionary.h (c) 2010 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 18 April 2011 (DB) +// Last modified: 14 October 2011 (DB) // --------------------------------------------------------------------------- // Provides methods for operating on a collection of SamReadGroup entries. // *************************************************************************** @@ -10,8 +10,9 @@ #ifndef SAM_READGROUP_DICTIONARY_H #define SAM_READGROUP_DICTIONARY_H -#include -#include +#include "api/api_global.h" +#include "api/SamReadGroup.h" +#include #include #include @@ -36,6 +37,7 @@ class API_EXPORT SamReadGroupDictionary { void Add(const std::string& readGroupId); // adds multiple read groups + void Add(const SamReadGroupDictionary& readGroups); void Add(const std::vector& readGroups); void Add(const std::vector& readGroupIds); @@ -72,13 +74,10 @@ class API_EXPORT SamReadGroupDictionary { SamReadGroupConstIterator End(void) const; // returns const_iterator to end() SamReadGroupConstIterator ConstEnd(void) const; // returns const_iterator to end() - // internal methods - private: - int IndexOf(const std::string& readGroupId) const; - // data members private: SamReadGroupContainer m_data; + std::map m_lookupData; }; } // namespace BamTools