-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPoint.h
36 lines (27 loc) · 1.02 KB
/
Point.h
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
36
#ifndef POINT_H_
#define POINT_H_
#include "Types.h"
class Point
{
public:
Pair se; //store the coordinates of a point (q, t)
bool orient; // if orient = 0 means reverse orientated anchor
bool ind; // ind = 1 means this is a start; ind = 0 means this is an end
bool inv; // inv = 1 means this is forward directiion; inv = 0 means this is a backward direction
unsigned int frag_num; // store the index of the fragment that contains this point
int clusterNum; // store the index of the Cluster which the current point comes from;
// int matchstartNum;
Point(unsigned int & frag_num1);
Point() {orient = 0; ind = 0; inv = 0;};
~Point() {};
friend std::ostream & operator<<(std::ostream & os, const Point & t); // overload of operator <<
};
Point::Point(unsigned int & frag_num1) {
frag_num = frag_num1;
orient = 0; ind = 0; inv = 0;
}
std::ostream & operator<<(std::ostream & os, const Point & M) {
os << "Point: { Pair:" << M.se << "; ind: " << M.ind << "; frag_num: " << M.frag_num << "\n";
return os;
}
#endif