LocARNA-1.8.11
aligner_restriction.hh
1 #ifndef LOCARNA_ALIGNER_RESTRICTION
2 #define LOCARNA_ALIGNER_RESTRICTION
3 
4 #ifdef HAVE_CONFIG_H
5 # include <config.h>
6 #endif
7 
8 #include <iostream>
9 
10 namespace LocARNA {
11 
27  private:
28  int startA_;
29  int startB_;
30  int endA_;
31  int endB_;
32  public:
33 
43  : startA_(startA), startB_(startB), endA_(endA), endB_(endB)
44  {}
45 
51  size_t startA() const {return startA_;}
52 
58  size_t endA() const {return endA_;}
59 
65  size_t startB() const {return startB_;}
66 
72  size_t endB() const {return endB_;}
73 
79  void set_startA(size_t p) {startA_=p;}
80 
86  void set_endA(size_t p) {endA_=p;}
87 
93  void set_startB(size_t p) {startB_=p;}
94 
100  void set_endB(size_t p) {endB_=p;}
101  };
102 
112  inline
113  std::ostream & operator<<(std::ostream &out, AlignerRestriction r) {
114  return
115  out << r.startA() << " "
116  << r.startB() << " "
117  << r.endA() << " "
118  << r.endB();
119  }
120 
121 }
122 
123 #endif
std::ostream & operator<<(std::ostream &out, AlignerRestriction r)
Definition: aligner_restriction.hh:113
void set_startA(size_t p)
Definition: aligner_restriction.hh:79
Definition: aligner.cc:17
size_t startA() const
Definition: aligner_restriction.hh:51
size_t startB() const
Definition: aligner_restriction.hh:65
void set_startB(size_t p)
Definition: aligner_restriction.hh:93
void set_endB(size_t p)
Definition: aligner_restriction.hh:100
void set_endA(size_t p)
Definition: aligner_restriction.hh:86
size_t endB() const
Definition: aligner_restriction.hh:72
size_t endA() const
Definition: aligner_restriction.hh:58
AlignerRestriction(int startA, int startB, int endA, int endB)
end position in B
Definition: aligner_restriction.hh:42
Restricts range of an alignment in Aligner.
Definition: aligner_restriction.hh:26