]> ruin.nu Git - germs.git/blobdiff - src/genesorter.h
renamed a function and removed some debug output
[germs.git] / src / genesorter.h
index 402464bcc4b8555d3d0c6541dc2ab21aa4fc18f3..e06bedf9e31e2611af5ebe4b7c086ffd280381e1 100644 (file)
@@ -22,7 +22,6 @@
 #define __GENESORTER_H__
 
 #include <vector>
-#include <tr1/memory>
 
 class SortAction;
 class GeneOrder;
@@ -34,8 +33,7 @@ class GeneOrder;
  */
 class GeneSorter{
        public:
-               typedef std::tr1::shared_ptr<SortAction> ActionPointer;
-               typedef std::vector<ActionPointer> ActionList;
+               typedef std::vector<SortAction> ActionList;
 
                /**
                 * Takes a GeneOrder, finds the actions to transform it into a sorted
@@ -48,6 +46,11 @@ class GeneSorter{
                 */
                ActionList safeActions(const GeneOrder& go1);
 
+               /**
+                * Calculates the score for an action given a gene order
+                */
+               size_t scoreAction(const GeneOrder& go, SortAction& sa);
+
                ~GeneSorter(){};
 };