X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=suffixnodes.hpp;h=6a22c4d4359b8ee6120c3e683b2d14318fd0c05c;hp=863a3ae523787530c454aeda1ef6b4632fe9a34f;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=526a868606faa50caf86e7399f7554c0335b39e5 diff --git a/suffixnodes.hpp b/suffixnodes.hpp index 863a3ae..6a22c4d 100644 --- a/suffixnodes.hpp +++ b/suffixnodes.hpp @@ -17,8 +17,7 @@ */ #include "mothur.h" - -using namespace std; +#include "mothurout.h" //******************************************************************************************************************** @@ -26,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(); @@ -43,6 +43,7 @@ protected: int parentNode; int startCharPosition; int endCharPosition; + MothurOut* m; }; //******************************************************************************************************************** @@ -51,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 }; @@ -60,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