]> git.donarmstrong.com Git - mothur.git/blob - sharedsabundvector.h
Initial revision
[mothur.git] / sharedsabundvector.h
1 #ifndef SHAREDSABUND_H
2 #define SHAREDSABUND_H
3
4
5 /*
6  *  sharedSharedSAbundVector.h
7  *  Dotur
8  *
9  *  Created by Sarah Westcott on 12/10/08.
10  *  Copyright 2008 __MyCompanyName__. All rights reserved.
11  *
12  */
13
14
15 #include <Carbon/Carbon.h>
16 #include "datavector.hpp"
17 #include "rabundvector.hpp"
18 #include "ordervector.hpp"
19 #include "sharedordervector.h"
20 #include "sharedrabundvector.h"
21
22 using namespace std;
23
24 class SharedSAbundVector : public DataVector {
25         
26 public:
27         SharedSAbundVector();
28         SharedSAbundVector(int);
29         SharedSAbundVector(const SharedSAbundVector& rv) : DataVector(rv.label), data(rv.data), maxRank(rv.maxRank), numBins(rv.numBins), numSeqs(rv.numSeqs){};
30         ~SharedSAbundVector(){};
31
32         int getNumBins();       
33         int getNumSeqs();       
34         int getMaxRank();       
35         string getGroup();
36         void setGroup(string);  
37         
38         void set(int, int, string);     
39         individual get(int);
40         int getAbundance(int);
41         void push_back(int, int, string);
42         void pop_back();
43         void resize(int);
44         int size();
45
46         void print(ostream&);
47                 
48         RAbundVector getRAbundVector(); 
49         SAbundVector getSAbundVector();
50         SharedSAbundVector getSharedSAbundVector();
51         SharedRAbundVector getSharedVector();
52         OrderVector getOrderVector(map<string,int>*);
53         
54 private:
55         vector<individual> data;
56         
57         int maxRank;
58         int numBins;
59         int numSeqs;
60         string group;
61 };
62
63 #endif
64