X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedlistvector.h;h=81779257346d4b25dbecf092a6c730162d7d4991;hb=372fb21ea66ced432b109225851a1b80ef0491a3;hp=56ea802a1b1bca511454f83ddcb9e8f29bd5ed27;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;p=mothur.git diff --git a/sharedlistvector.h b/sharedlistvector.h index 56ea802..8177925 100644 --- a/sharedlistvector.h +++ b/sharedlistvector.h @@ -12,6 +12,7 @@ #include "datavector.hpp" #include "groupmap.h" +#include "counttable.h" #include "sharedrabundvector.h" #include "sharedsabundvector.h" @@ -32,8 +33,8 @@ public: SharedListVector(); SharedListVector(int); SharedListVector(ifstream&); - SharedListVector(const SharedListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs){ groupmap = NULL; }; - ~SharedListVector(){ if (groupmap != NULL) { delete groupmap; } }; + SharedListVector(const SharedListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs){ groupmap = NULL; countTable = NULL; }; + ~SharedListVector(){ if (groupmap != NULL) { delete groupmap; } if (countTable != NULL) { delete countTable; } }; int getNumBins() { return numBins; } int getNumSeqs() { return numSeqs; } @@ -58,6 +59,7 @@ public: private: vector data; //data[i] is a list of names of sequences in the ith OTU. GroupMap* groupmap; + CountTable* countTable; int maxRank; int numBins; int numSeqs;