LocARNA-2.0.0
alignment_impl.hh
1 #ifndef LOCARNA_ALIGNMENT_IMPL_HH
2 #define LOCARNA_ALIGNMENT_IMPL_HH
3 
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7 
8 #include <iosfwd>
9 #include <vector>
10 #include "sequence.hh"
11 
12 namespace LocARNA {
13 
14  class Alignment;
15  class Sequence;
16  class RnaData;
17  class Scoring;
18 
22  class AlignmentImpl {
23  public:
24  const Sequence seqA_;
25  const Sequence seqB_;
26 
40 
41  std::string strA_;
42  std::string strB_;
43 
50  AlignmentImpl(const Sequence &seqA,
51  const Sequence &seqB)
52  : seqA_(seqA),
53  seqB_(seqB),
54  edges_(),
55  strA_(),
56  strB_() {}
57 
58 
62  bool
63  empty() const { return edges_.empty(); }
64 
65  };
66 
67 } // end namespace LocARNA
68 
69 #endif // LOCARNA_ALIGNMENT_IMPL_HH
Definition: alignment.hh:73
Implementation of Alignment.
Definition: alignment_impl.hh:22
std::string strA_
structure of A as dot-bracket string
Definition: alignment_impl.hh:41
const Sequence seqA_
sequence A
Definition: alignment_impl.hh:24
AlignmentImpl(const Sequence &seqA, const Sequence &seqB)
Constructor as empty alignment of two sequences.
Definition: alignment_impl.hh:50
bool empty() const
Definition: alignment_impl.hh:63
std::string strB_
structure of B as dot-bracket string
Definition: alignment_impl.hh:42
const Sequence seqB_
sequence B
Definition: alignment_impl.hh:25
Alignment::edges_t edges_
alignment edges
Definition: alignment_impl.hh:39
"Sequence View" of multiple alignment as array of column vectors
Definition: sequence.hh:17
Definition: aligner.cc:15