Skip to content
Snippets Groups Projects
Commit cbd4f620 authored by Bienchen's avatar Bienchen
Browse files

Reformatted modules/seq/alg/src/impl/align_impl.hh

parent 0546f80f
No related branches found
No related tags found
No related merge requests found
...@@ -25,39 +25,39 @@ ...@@ -25,39 +25,39 @@
namespace ost { namespace seq { namespace alg { namespace impl { namespace ost { namespace seq { namespace alg { namespace impl {
typedef enum { typedef enum {
DIAG, DIAG,
INS1, INS1,
INS2, INS2,
UNKN UNKN
} Path; } Path;
struct DLLEXPORT AlnPos { struct DLLEXPORT AlnPos {
AlnPos(): score(0), from(impl::UNKN) { } AlnPos(): score(0), from(impl::UNKN) { }
int score; int score;
impl::Path from; impl::Path from;
}; };
struct DLLEXPORT AlnMat { struct DLLEXPORT AlnMat {
AlnMat(int width, int height): AlnMat(int width, int height):
mat_(width*height), width_(width), height_(height) mat_(width*height), width_(width), height_(height)
{ } { }
impl::AlnPos& operator()(int x, int y) { return mat_[x*height_+y]; } impl::AlnPos& operator()(int x, int y) { return mat_[x*height_+y]; }
const impl::AlnPos& operator()(int x, int y) const { const impl::AlnPos& operator()(int x, int y) const {
return mat_[x*height_+y]; return mat_[x*height_+y];
} }
int GetWidth() const { return width_; } int GetWidth() const { return width_; }
int GetHeight() const { return height_; } int GetHeight() const { return height_; }
private: private:
std::vector<impl::AlnPos> mat_; std::vector<impl::AlnPos> mat_;
int width_; int width_;
int height_; int height_;
}; };
inline void DLLEXPORT SetRoute(impl::AlnMat& mat, int& i, int& j, inline void DLLEXPORT SetRoute(impl::AlnMat& mat, int& i, int& j,
const ConstSequenceHandle& s1, const ConstSequenceHandle& s1,
const ConstSequenceHandle& s2, const ConstSequenceHandle& s2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment