]> git.donarmstrong.com Git - mothur.git/blobdiff - rabundvector.cpp
changed int to pid_t type in fork(). roughed in get.mimarkscommand.
[mothur.git] / rabundvector.cpp
index 43dbfacc78b845b5d247ba44484b464fd612d590..4d985e9f8a5ead507841799f3fa24b095017e710 100644 (file)
@@ -76,6 +76,7 @@ RAbundVector::RAbundVector(ifstream& f) : DataVector(), maxRank(0), numBins(0),
                        f >> inputData;
                        set(i, inputData);
                }
+        
        }
        catch(exception& e) {
                m->errorOut(e, "RAbundVector", "RAbundVector");
@@ -114,7 +115,15 @@ int RAbundVector::get(int index){
        return data[index];
        
 }
+/***********************************************************************/
 
+void RAbundVector::clear(){
+       numBins = 0;
+       maxRank = 0;
+       numSeqs = 0;
+       data.clear();
+       
+}
 /***********************************************************************/
 
 void RAbundVector::push_back(int binSize){