]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/SamReadGroupDictionary.h
Fixed regression: improper @SQ line ordering in SamHeader output
[bamtools.git] / src / api / SamReadGroupDictionary.h
index 89f23e0e4cab31ad0ef8c4be039e5ba5873f4f87..c66c6d5b233dee35648bfaf4b65d01ec257a9f0b 100644 (file)
@@ -2,7 +2,7 @@
 // SamReadGroupDictionary.h (c) 2010 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 1 October 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 <api/api_global.h>
-#include <api/SamReadGroup.h>
+#include "api/api_global.h"
+#include "api/SamReadGroup.h"
+#include <map>
 #include <string>
 #include <vector>
 
@@ -73,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<std::string, SamReadGroup> m_lookupData;
 };
 
 } // namespace BamTools