X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedlistvector.h;h=13fed9791fb347806f33723893aacd15eb535690;hp=8cfb7e000a9427921ce9e951c040c06c50cc71d8;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=d59f91eb1230d2c7867a92cb86138b7003100ab4 diff --git a/sharedlistvector.h b/sharedlistvector.h index 8cfb7e0..13fed97 100644 --- a/sharedlistvector.h +++ b/sharedlistvector.h @@ -12,7 +12,7 @@ #include "datavector.hpp" #include "groupmap.h" -#include "globaldata.hpp" +#include "counttable.h" #include "sharedrabundvector.h" #include "sharedsabundvector.h" @@ -33,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){}; - ~SharedListVector(){}; + SharedListVector(const SharedListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs), binLabels(lv.binLabels) { groupmap = NULL; countTable = NULL; }; + ~SharedListVector(){ if (groupmap != NULL) { delete groupmap; } if (countTable != NULL) { delete countTable; } }; int getNumBins() { return numBins; } int getNumSeqs() { return numSeqs; } @@ -42,6 +42,8 @@ public: void set(int, string); string get(int); + vector getLabels(); + void setLabels(vector); void push_back(string); void resize(int); void clear(); @@ -58,11 +60,12 @@ public: private: vector data; //data[i] is a list of names of sequences in the ith OTU. - GlobalData* globaldata; GroupMap* groupmap; + CountTable* countTable; int maxRank; int numBins; int numSeqs; + vector binLabels; };