]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/algorithms/Sort.h
Fixed: invalidated by-name sort order in some cases
[bamtools.git] / src / api / algorithms / Sort.h
index cf21479c82db87d3e51316a88d1c0808feabdffb..32902e11904aa6187e3c25b90ea5b4e1350e43f0 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College
 // All rights reserved.
 // ---------------------------------------------------------------------------
-// Last modified: 10 October 2011 (DB)
+// Last modified: 4 April 2012 (DB)
 // ---------------------------------------------------------------------------
 // Provides sorting functionality.
 // ***************************************************************************
 #ifndef ALGORITHMS_SORT_H
 #define ALGORITHMS_SORT_H
 
-#include <api/api_global.h>
-#include <api/BamAlignment.h>
-#include <api/BamReader.h>
-#include <api/BamMultiReader.h>
+#include "api/api_global.h"
+#include "api/BamAlignment.h"
+#include "api/BamReader.h"
+#include "api/BamMultiReader.h"
 #include <cassert>
 #include <algorithm>
 #include <functional>
@@ -85,7 +85,7 @@ struct API_EXPORT Sort {
 
         // data members
         private:
-            const Sort::Order& m_order;
+            const Sort::Order m_order;
     };
 
     /*! \struct BamTools::Algorithms::Sort::ByPosition
@@ -131,7 +131,7 @@ struct API_EXPORT Sort {
 
         // data members
         private:
-            Sort::Order m_order;
+            const Sort::Order m_order;
     };
 
     /*! \struct BamTools::Algorithms::Sort::ByTag
@@ -178,8 +178,8 @@ struct API_EXPORT Sort {
 
         // data members
         private:
-            std::string m_tag;
-            Sort::Order m_order;
+            const std::string m_tag;
+            const Sort::Order m_order;
     };
 
     /*! \struct BamTools::Algorithms::Sort::Unsorted