X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=suffixnodes.hpp;fp=suffixnodes.hpp;h=63918fa6acf5f5c5f81124403e387cb61c7634b3;hb=02909d6cae9963ba00dc746969a370fa8ca934fc;hp=82d4be9f40ead561f2e50b84bbd43fbf7d8f7e9e;hpb=e7729bb337cfefcaba24549092cc89b44002af39;p=mothur.git diff --git a/suffixnodes.hpp b/suffixnodes.hpp index 82d4be9..63918fa 100644 --- a/suffixnodes.hpp +++ b/suffixnodes.hpp @@ -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