]> git.donarmstrong.com Git - mothur.git/blobdiff - suffixnodes.hpp
changes while testing
[mothur.git] / suffixnodes.hpp
index 82d4be9f40ead561f2e50b84bbd43fbf7d8f7e9e..6a22c4d4359b8ee6120c3e683b2d14318fd0c05c 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "mothur.h"
+#include "mothurout.h"
 
 //********************************************************************************************************************
 
@@ -24,6 +25,7 @@ class SuffixNode {
        
 public:
        SuffixNode(int, int, int);
+       virtual ~SuffixNode() {}
        virtual void print(string, int) = 0;
        virtual void setChildren(char, int);
        virtual int getNumChildren();
@@ -41,6 +43,7 @@ protected:
        int parentNode;
        int startCharPosition;
        int endCharPosition;
+       MothurOut* m;
 };
 
 //********************************************************************************************************************
@@ -49,6 +52,7 @@ class SuffixLeaf : public SuffixNode {        //      most of the methods are already set in
        
 public:
        SuffixLeaf(int, int, int);              //      we just need to define a constructor and
+       ~SuffixLeaf() {}
        void print(string, int);                //      print method
 };
 
@@ -58,6 +62,7 @@ class SuffixBranch : public SuffixNode {
        
 public:
        SuffixBranch(int, int, int);
+       ~SuffixBranch() {}
        void print(string, int);                //      need a special method for printing the node because there are children
        void eraseChild(char);                  //      need a special method for erasing the children
        void setChildren(char, int);    //      need a special method for setting children