]> ruin.nu Git - germs.git/blobdiff - src/genesorter.h
we need a list of smart pointers
[germs.git] / src / genesorter.h
index 384261196060dfaa19522a7deadc68e28784e6d1..402464bcc4b8555d3d0c6541dc2ab21aa4fc18f3 100644 (file)
@@ -22,6 +22,7 @@
 #define __GENESORTER_H__
 
 #include <vector>
+#include <tr1/memory>
 
 class SortAction;
 class GeneOrder;
@@ -33,7 +34,8 @@ class GeneOrder;
  */
 class GeneSorter{
        public:
-               typedef std::vector<SortAction> ActionList;
+               typedef std::tr1::shared_ptr<SortAction> ActionPointer;
+               typedef std::vector<ActionPointer> ActionList;
 
                /**
                 * Takes a GeneOrder, finds the actions to transform it into a sorted