X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fgenesorter.h;h=384261196060dfaa19522a7deadc68e28784e6d1;hp=fa47b0535b188b01b14461807d335ca6f76be945;hb=d0abe1592fcbb10f4ac303e7b66c384624d4d439;hpb=5cdc3cbecb3bed52346f262dc8d0d0c88e8dba17 diff --git a/src/genesorter.h b/src/genesorter.h index fa47b05..3842611 100644 --- a/src/genesorter.h +++ b/src/genesorter.h @@ -21,14 +21,14 @@ #ifndef __GENESORTER_H__ #define __GENESORTER_H__ -#include "geneorder.h" -#include "sortaction.h" - #include +class SortAction; +class GeneOrder; /** - * Abstract baseclass for different gene sorters. + * Sorts genes + * * \author Michael Andreen */ class GeneSorter{ @@ -39,14 +39,14 @@ class GeneSorter{ * Takes a GeneOrder, finds the actions to transform it into a sorted * permutation and returns the list with required actions. */ - virtual ActionList sort(const GeneOrder& go1) = 0; + ActionList sort(const GeneOrder& go1); /** * Find the safe actions for this GeneOrder. */ - virtual ActionList safeActions(const GeneOrder& go1) = 0; + ActionList safeActions(const GeneOrder& go1); - virtual ~GeneSorter(){}; + ~GeneSorter(){}; }; #endif