X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fsortaction.h;h=ec9a023710961ee0978651fe46f1520d6d18039d;hb=5d72c22c72f7f7438d491373a9685aa8a790b1d2;hp=c56d0ee42a304bdf26db992f36d4c61a5f374f7a;hpb=efe42ca948704593c847996d0ae8da71d15bb75b;p=germs.git diff --git a/src/sortaction.h b/src/sortaction.h index c56d0ee..ec9a023 100644 --- a/src/sortaction.h +++ b/src/sortaction.h @@ -26,6 +26,10 @@ class GeneOrder; +/** + * Abstraction for a sort action implementation, this is the base that other + * actions inherits from. + */ class SortActionImpl{ public: @@ -48,7 +52,7 @@ class SortActionImpl{ }; /** - * Abstraction of a sort action, all child actions has to be immutable. + * Abstraction of a sort action, all SortActionImpls has to be immutable. * * \author Michael Andreen */ @@ -101,6 +105,13 @@ class SortAction{ std::string toString() const{ return _action->toString(); } + + /** + * Gives access to the implementation + */ + const SortActionImpl& impl() const{ + return *_action; + } private: ActionPointer _action;