]> git.donarmstrong.com Git - mothur.git/blobdiff - suffixnodes.hpp
added otu.association command. added calcSpearman, calcKendall and calcPearson functi...
[mothur.git] / suffixnodes.hpp
index 63918fa6acf5f5c5f81124403e387cb61c7634b3..1e078a63a759a99b4b47ed123526da752e2404bd 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "mothur.h"
+#include "mothurout.h"
 
 //********************************************************************************************************************
 
@@ -24,6 +25,7 @@ class SuffixNode {
        
 public:
        SuffixNode(int, int, int);
+       SuffixNode(const SuffixNode& sn) : parentNode(sn.parentNode), startCharPosition(sn.startCharPosition), endCharPosition(sn.endCharPosition) {m = MothurOut::getInstance();}
        virtual ~SuffixNode() {}
        virtual void print(string, int) = 0;
        virtual void setChildren(char, int);
@@ -42,6 +44,7 @@ protected:
        int parentNode;
        int startCharPosition;
        int endCharPosition;
+       MothurOut* m;
 };
 
 //********************************************************************************************************************
@@ -60,6 +63,7 @@ class SuffixBranch : public SuffixNode {
        
 public:
        SuffixBranch(int, int, int);
+       SuffixBranch(const SuffixBranch& sb) : suffixNode(sb.suffixNode), childNodes(sb.childNodes), SuffixNode(sb.parentNode, sb.startCharPosition, sb.endCharPosition) {}
        ~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