X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fgenesorter.h;h=e06bedf9e31e2611af5ebe4b7c086ffd280381e1;hb=cc3e3bd109d72d82826629b96f8e6721d5243cf7;hp=402464bcc4b8555d3d0c6541dc2ab21aa4fc18f3;hpb=3401199b1ce268dd6465f09abf6264592b989140;p=germs.git diff --git a/src/genesorter.h b/src/genesorter.h index 402464b..e06bedf 100644 --- a/src/genesorter.h +++ b/src/genesorter.h @@ -22,7 +22,6 @@ #define __GENESORTER_H__ #include -#include class SortAction; class GeneOrder; @@ -34,8 +33,7 @@ class GeneOrder; */ class GeneSorter{ public: - typedef std::tr1::shared_ptr ActionPointer; - typedef std::vector ActionList; + typedef std::vector 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(){}; };