X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=suffixtree.cpp;h=9cd835185c31a61bd024590f5a3fc7396d31610f;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=2842b366b3360f4b43ad32dd28603073266dcdfa;hpb=63e089e0b3aad1741bab60119ed7ccc784dce347;p=mothur.git diff --git a/suffixtree.cpp b/suffixtree.cpp index 2842b36..9cd8351 100644 --- a/suffixtree.cpp +++ b/suffixtree.cpp @@ -35,7 +35,7 @@ inline bool compareParents(SuffixNode* left, SuffixNode* right){// this is neces //******************************************************************************************************************** -SuffixTree::SuffixTree(){} +SuffixTree::SuffixTree(){ m = MothurOut::getInstance(); } //******************************************************************************************************************** @@ -75,7 +75,7 @@ string SuffixTree::getSeqName() { void SuffixTree::print(){ vector hold = nodeVector; sort(hold.begin(), hold.end(), compareParents); - mothurOut("Address\t\tParent\tNode\tSuffix\tStartC\tEndC\tSuffix"); mothurOutEndLine(); + m->mothurOut("Address\t\tParent\tNode\tSuffix\tStartC\tEndC\tSuffix"); m->mothurOutEndLine(); for(int i=1;i<=nodeCounter;i++){ hold[i]->print(sequence, i); }