X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedordervector.h;h=7d383ac84f431830e2324cd51d4777d80a3390e0;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=3568450d3059e231c310e18e7073b434516f7c07;hpb=e4c80376cc4533f66c8dfc18f3e1a86a60ac17fe;p=mothur.git diff --git a/sharedordervector.h b/sharedordervector.h index 3568450..7d383ac 100644 --- a/sharedordervector.h +++ b/sharedordervector.h @@ -24,6 +24,7 @@ struct individual { bool operator()(const individual& i1, const individual& i2) { return (i1.abundance > i2.abundance); } + individual() { group = ""; bin = 0; abundance = 0; } }; struct individualFloat { @@ -33,6 +34,7 @@ struct individualFloat { bool operator()(const individual& i1, const individual& i2) { return (i1.abundance > i2.abundance); } + individualFloat() { group = ""; bin = 0; abundance = 0.0; } }; @@ -40,11 +42,7 @@ struct individualFloat { #include "rabundvector.hpp" #include "sharedrabundvector.h" #include "sharedsabundvector.h" -#include "globaldata.hpp" #include "groupmap.h" -//#include "globaldata.hpp" - -class GlobalData; class SharedOrderVector : public DataVector { @@ -66,6 +64,7 @@ public: vector::iterator end(); void push_back(int, int, string); //OTU, abundance, group MUST CALL UPDATE STATS AFTER PUSHBACK!!! void updateStats(); + void clear(); int getNumBins(); int getNumSeqs(); @@ -80,7 +79,6 @@ public: vector getSharedRAbundVector(); //returns sharedRabundVectors for all the users groups private: - GlobalData* globaldata; GroupMap* groupmap; vector data; map< int, vector >::iterator it;