]> git.donarmstrong.com Git - mothur.git/blobdiff - sabundvector.hpp
Initial revision
[mothur.git] / sabundvector.hpp
diff --git a/sabundvector.hpp b/sabundvector.hpp
new file mode 100644 (file)
index 0000000..f45ef60
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef SABUND_H
+#define SABUND_H
+
+using namespace std;
+
+#include "datavector.hpp"
+#include "rabundvector.hpp"
+#include "ordervector.hpp"
+
+class SAbundVector : public DataVector {
+       
+public:
+       SAbundVector();
+       SAbundVector(int);
+//     SAbundVector(const SAbundVector&);
+       SAbundVector(string, vector<int>);
+       SAbundVector(const SAbundVector& rv) : DataVector(rv.label), data(rv.data), maxRank(rv.maxRank), numBins(rv.numBins), numSeqs(rv.numSeqs){};
+       SAbundVector(ifstream&);
+       ~SAbundVector(){};
+
+       int getNumBins();       
+       int getNumSeqs();       
+       int getMaxRank();       
+       
+       void set(int, int);
+       int get(int);
+       void push_back(int);
+       void resize(int);
+       int size();
+
+       void print(ostream&);
+       void print(string, ostream&);
+               
+       RAbundVector getRAbundVector(); 
+       SAbundVector getSAbundVector();
+       OrderVector getOrderVector(map<string,int>*);
+       
+private:
+       vector<int> data;
+//     bool needToUpdate;
+//     void updateStats();
+       int maxRank;
+       int numBins;
+       int numSeqs;
+
+};
+
+#endif