-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIsochoreInterval.H
29 lines (26 loc) · 924 Bytes
/
IsochoreInterval.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
/****************************************************************
IsochoreInterval.H
Copyright (C)2013 William H. Majoros ([email protected]).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_IsochoreInterval_H
#define INCL_IsochoreInterval_H
#include "BOOM/Comparator.H"
struct IsochoreInterval
{
int begin, end;
int isochoreId; // 0-3
float GC;
IsochoreInterval(int b,int e,int id,float gc)
: begin(b),end(e),isochoreId(id),GC(gc) {}
IsochoreInterval() : begin(-1) {}
};
class IsochoreIntervalCmp : public BOOM::Comparator<IsochoreInterval>
{
typedef IsochoreInterval T;
bool equal(T &a,T &b) {return a.begin==b.begin;}
bool greater(T &a,T &b) {return a.begin> b.begin;}
bool less(T &a,T &b) {return a.begin< b.begin;}
};
#endif