-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentRegion.H
More file actions
38 lines (33 loc) · 1.08 KB
/
ContentRegion.H
File metadata and controls
38 lines (33 loc) · 1.08 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
36
37
/****************************************************************
ContentRegion.H
Copyright (C)2015 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_ContentRegion_H
#define INCL_ContentRegion_H
#include <iostream>
#include "BOOM/Interval.H"
#include "BOOM/Comparator.H"
#include "ContentType.H"
using namespace std;
using namespace BOOM;
class ContentRegion {
public:
ContentRegion();
ContentRegion(ContentType,int begin,int end);
ContentType getType() const;
const Interval &getInterval() const;
void printOn(ostream &) const;
protected:
Interval interval;
ContentType type;
};
ostream &operator<<(ostream &,const ContentRegion &);
class ContentRegionComparator : public Comparator<ContentRegion> { // compares begin only
public:
bool equal(ContentRegion &a,ContentRegion &b);
bool greater(ContentRegion &a,ContentRegion &b);
bool less(ContentRegion &a,ContentRegion &b);
};
#endif