-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSequence.h
More file actions
35 lines (30 loc) · 1.02 KB
/
Sequence.h
File metadata and controls
35 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SEQUENCE_H
#define SEQUENCE_H
#include<iostream>
#include<CodonsTable.h>
using namespace std;
class Sequence
{
protected:
char* seq;
CodonsTable codonsTable;
public:
// constructors and destructor
Sequence();
Sequence(int length);
Sequence(Sequence& rhs);
virtual ~Sequence();
// pure virtual function that should be overridden because every
// type of sequence has its own details to be printed
virtual void Print()= 0;
// friend function that will find the LCS (longest common
// subsequence) between 2 sequences of any type, according to
// polymorphism
friend char* Align(Sequence * s1, Sequence * s2, int n, int m);
// functions to load and read from a file
virtual void saveSequenceToFile()=0;
virtual void loadSequenceFromFile()=0;
// function to get an element in sequence
virtual char getElementInSeq(int index)=0;
};
#endif // SEQUENCE_H