]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/SamReadGroupDictionary.h
Changed platform check to use standard cmake variable (issue #66)
[bamtools.git] / src / api / SamReadGroupDictionary.h
index 7a651e1501818c7d0c93ff30091ad68391f9fb82..a4aeda95154d1f3c99372bf4a145ed15f3013892 100644 (file)
@@ -2,7 +2,7 @@
 // SamReadGroupDictionary.h (c) 2010 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 10 October 2011 (DB)
+// Last modified: 16 October 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides methods for operating on a collection of SamReadGroup entries.
 // ***************************************************************************
@@ -12,6 +12,7 @@
 
 #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, size_t> m_lookupData;
 };
 
 } // namespace BamTools