#define __SORTACTION_H__
#include <tr1/memory>
+#include <string>
class GeneOrder;
/**
* Abstraction of a sort action, all child actions has to be immutable.
virtual bool operator==(const SortAction& sa) const{
return (*_action) == (sa._action.get() == 0 ? sa : *sa._action);
}
+
+ /**
+ * Gives a string representation of the action, for output
+ */
+ virtual std::string toString() const{
+ return _action->toString();
+ }
private:
ActionPointer _action;