/usr/include/blasr/algorithms/alignment/sdp/VariableLengthSDPFragment.h is in libblasr-dev 0~20151014+gitbe5d1bf-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 44 45 46 47 48 49 50 51 | #ifndef VARIABLE_LENGTH_SDP_FRAGMENT_H_
#define VARIABLE_LENGTH_SDP_FRAGMENT_H_
#include "SDPFragment.h"
class ChainedFragment : public Fragment {
int score;
ChainedFragment *chainPrev;
public:
ChainedFragment():Fragment() {
score = 0;
chainPrev = NULL;
}
int SetScore(int _score) {
return (score = _score);
}
int GetScore() {
return score;
}
ChainedFragment *SetChainPrev(ChainedFragment *_chainPrev) {
return (chainPrev = _chainPrev);
}
ChainedFragment *GetChainPrev() {
return chainPrev;
}
int LessThan(const ChainedFragment &f) const {
//
// Order fragments by endpoint.
//
if (x == f.GetX()) {
return (y < f.GetY());
}
else {
return x < f.GetX();
}
}
int operator<(const ChainedFragment &f) const {
//
// Sort fragments by x then y.
//
return LessThan(f);
}
};
#endif
|