X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fsortaction.h;h=a71a533cf70ec981f10d32527053e58cdf0a609b;hp=b6c5df74278f85d08540678674ffb6c7d384a650;hb=d0abe1592fcbb10f4ac303e7b66c384624d4d439;hpb=47b1f5c0294e079bc120dc8366977951aa0778bf diff --git a/src/sortaction.h b/src/sortaction.h index b6c5df7..a71a533 100644 --- a/src/sortaction.h +++ b/src/sortaction.h @@ -21,8 +21,9 @@ #ifndef __SORTACTION_H__ #define __SORTACTION_H__ +class GeneOrder; /** - * Abstraction of a sort action, keeping track of score + * Abstraction of a sort action * * \author Michael Andreen */ @@ -32,9 +33,18 @@ class SortAction{ virtual ~SortAction(){}; /** - * Sort SortActions by score + * Applies the action on the GeneOrder and returning it. */ - virtual operator<(const SortAction& sa) const; + virtual GeneOrder& operator()(GeneOrder& go) const{ + return go; + } + + /** + * Compares sort actions. + */ + virtual bool operator==(const SortAction& sa) const{ + return false; + } }; #endif