8 * Created by Thomas Ryabin on 4/13/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 /* This class is a container to store the sequences. */
17 #include "sequence.hpp"
18 #include "calculator.h"
25 SequenceDB(int); //makes data that size
26 SequenceDB(ifstream&); //reads file to fill data
27 SequenceDB(const SequenceDB& sdb) : data(sdb.data) {};
28 ~SequenceDB(); //loops through data and delete each sequence
32 void set(int, string); //unaligned - should also set length
33 void set(int, Sequence); //unaligned - should also set length
34 Sequence get(int); //returns sequence name at that location
35 void push_back(Sequence); //adds unaligned sequence
36 void resize(int); //resizes data
37 void clear(); //clears data - remeber to loop through and delete the sequences inside or you will have a memory leak
38 int size(); //returns datas size
39 void print(ostream&); //loops through data using sequence class print
42 vector<Sequence> data;
43 string readName(ifstream&);
44 string readSequence(ifstream&);