X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Freverseaction.h;h=0330597a90b775c7da1ed89fb118ee59482e1241;hb=e81855989d0f0e124e0ec770b417bcb099959391;hp=a7db6d460530082828fa26d59aa80cbe134d670d;hpb=d0abe1592fcbb10f4ac303e7b66c384624d4d439;p=germs.git diff --git a/src/reverseaction.h b/src/reverseaction.h index a7db6d4..0330597 100644 --- a/src/reverseaction.h +++ b/src/reverseaction.h @@ -33,10 +33,11 @@ class ReverseAction : public SortAction{ /** * Creates a new reverse action for the interval [i,j] */ - ReverseAction(size_t i, size_t j):_i(i),_j(j){} + ReverseAction(size_t i, size_t j): SortAction(0),_i(i),_j(j){ + } /** - * Sort SortActions by score + * Applies the sort action on the gene order */ virtual GeneOrder& operator()(GeneOrder& go) const{ go.reverse(_i,_j);