X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sabundvector.hpp;fp=sabundvector.hpp;h=f45ef609515321a74b9bbf98d7f7b4fcbdb9512d;hb=20a2d0350a737a434c89f303662d64a8eeea7b05;hp=0000000000000000000000000000000000000000;hpb=bbb5879a7e566935c23d63d42bb945072424b939;p=mothur.git diff --git a/sabundvector.hpp b/sabundvector.hpp new file mode 100644 index 0000000..f45ef60 --- /dev/null +++ b/sabundvector.hpp @@ -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); + 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*); + +private: + vector data; +// bool needToUpdate; +// void updateStats(); + int maxRank; + int numBins; + int numSeqs; + +}; + +#endif