/usr/include/pbseq/pbdata/reads/ReadInterval.hpp is in libpbdata-dev 0~20161219-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 | #ifndef _BLASR_READ_INTERVAL_HPP_
#define _BLASR_READ_INTERVAL_HPP_
#include "RegionAnnotation.hpp"
class RegionAnnotation;
class ReadInterval {
public:
int start;
int end;
int score;
ReadInterval(int s=0, int e=0, int sc=0) : start(s), end(e), score(sc) {};
ReadInterval(const RegionAnnotation & ra)
: start(ra.GetStart())
, end(ra.GetEnd())
, score(ra.GetScore()) {}
ReadInterval& operator=(const ReadInterval &rhs) {
start = rhs.start;
end = rhs.end;
score = rhs.score;
return *this;
}
bool operator==(const ReadInterval &rhs) const {
return (start == rhs.start and
end == rhs.end and
score == rhs.score);
}
inline friend std::ostream & operator<<(std::ostream &, const ReadInterval &);
int Length(void) const {return end - start;}
};
inline std::ostream & operator<<(std::ostream & ss, const ReadInterval & interval) {
ss << interval.start << "_" << interval.end;
return ss;
}
#endif
|