]> git.donarmstrong.com Git - mothur.git/blobdiff - suffixnodes.hpp
fixed some bugs
[mothur.git] / suffixnodes.hpp
index 82d4be9f40ead561f2e50b84bbd43fbf7d8f7e9e..63918fa6acf5f5c5f81124403e387cb61c7634b3 100644 (file)
@@ -24,6 +24,7 @@ class SuffixNode {
        
 public:
        SuffixNode(int, int, int);
+       virtual ~SuffixNode() {}
        virtual void print(string, int) = 0;
        virtual void setChildren(char, int);
        virtual int getNumChildren();
@@ -49,6 +50,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 +60,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