]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedordervector.h
fixed metastats, added resize to cluster.classic, added code to kill children if...
[mothur.git] / sharedordervector.h
index 3568450d3059e231c310e18e7073b434516f7c07..6aa8ba1c1ed0dc6ef49f1aa5d8becac971852126 100644 (file)
@@ -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; }
 };
 
 
@@ -66,6 +68,7 @@ public:
        vector<individual>::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();