#define LIST_H
#include "datavector.hpp"
-#include <iostream>
-#include <map>
-/* This class is a child to datavector. It represents OTU information at a certain distance.
+/* DataStructure for a list file.
+ This class is a child to datavector. It represents OTU information at a certain distance.
A list vector can be converted into and ordervector, rabundvector or sabundvector.
Each member of the internal container "data" represents an individual OTU.
So data[0] = "a,b,c,d,e,f".
ListVector(int);
// ListVector(const ListVector&);
ListVector(string, vector<string>);
- ListVector(const ListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs){};
+ ListVector(const ListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs), binLabels(lv.binLabels) {};
ListVector(ifstream&);
~ListVector(){};
void set(int, string);
string get(int);
+ vector<string> getLabels();
+ void setLabels(vector<string>);
void push_back(string);
void resize(int);
void clear();
int size();
void print(ostream&);
+ void printHeaders(ostream&);
RAbundVector getRAbundVector();
SAbundVector getSAbundVector();
int maxRank;
int numBins;
int numSeqs;
+ vector<string> binLabels;
};