X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=suffixnodes.hpp;h=6a22c4d4359b8ee6120c3e683b2d14318fd0c05c;hp=82d4be9f40ead561f2e50b84bbd43fbf7d8f7e9e;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8 diff --git a/suffixnodes.hpp b/suffixnodes.hpp index 82d4be9..6a22c4d 100644 --- a/suffixnodes.hpp +++ b/suffixnodes.hpp @@ -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