X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedrabundvector.h;h=8944a26b871b22ddc01ade5837770773dd62ee36;hb=a8f5a612bba54ceb74e17efc027d3a7f5aa93c9a;hp=92f71cdd75eca67df59f1f5cc548e61fe162b41e;hpb=eb1c88346fb246e95a6b38935b103f95e38b82ca;p=mothur.git diff --git a/sharedrabundvector.h b/sharedrabundvector.h index 92f71cd..8944a26 100644 --- a/sharedrabundvector.h +++ b/sharedrabundvector.h @@ -14,6 +14,7 @@ #include "sharedordervector.h" #include "sharedsabundvector.h" #include "rabundvector.hpp" +#include "groupmap.h" /* This class is a child to datavector. It represents OTU information at a certain distance. It is similiar to an rabundvector except each member of data knows which group it belongs to. @@ -21,7 +22,7 @@ An individual which knows the OTU from which it came, the group it is in and its abundance. */ - +class GlobalData; class SharedRAbundVector : public DataVector { @@ -30,8 +31,8 @@ public: SharedRAbundVector(int); //SharedRAbundVector(string, vector); SharedRAbundVector(const SharedRAbundVector& bv) : DataVector(bv), data(bv.data), maxRank(bv.maxRank), numBins(bv.numBins), numSeqs(bv.numSeqs){}; - //SharedRAbundVector(ifstream&); - ~SharedRAbundVector(); + SharedRAbundVector(ifstream&); + ~SharedRAbundVector(){}; int getNumBins(); int getNumSeqs(); @@ -48,7 +49,9 @@ public: int getAbundance(int); int numNZ(); void sortD(); //Sorts the data in descending order. - void push_back(int, int, string); //abundance, OTU, groupname + void push_front(int, int, string); //abundance, otu, groupname + void insert(int, int, string); //abundance, otu, groupname + void push_back(int, int, string); //abundance, otu, groupname void pop_back(); void resize(int); int size(); @@ -64,9 +67,13 @@ public: SharedOrderVector getSharedOrderVector(); SharedSAbundVector getSharedSAbundVector(); SharedRAbundVector getSharedRAbundVector(); + vector getSharedRAbundVectors(); private: vector data; + vector lookup; + GlobalData* globaldata; + GroupMap* groupmap; int maxRank; int numBins; int numSeqs;