]> ruin.nu Git - germs.git/blobdiff - src/sortaction.h
setting up things for implementing the sorting
[germs.git] / src / sortaction.h
index b6c5df74278f85d08540678674ffb6c7d384a650..a71a533cf70ec981f10d32527053e58cdf0a609b 100644 (file)
@@ -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