OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
seq
aligned_region.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of the OpenStructure project <www.openstructure.org>
3
//
4
// Copyright (C) 2008-2011 by the OpenStructure authors
5
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
#ifndef OST_SEQ_ALIGNED_REGION_HH
20
#define OST_SEQ_ALIGNED_REGION_HH
21
22
/*
23
Author: Marco Biasini
24
*/
25
#include <
ost/seq/module_config.hh
>
26
#include <
ost/seq/alignment_handle.hh
>
27
#include <
ost/seq/aligned_column_iterator.hh
>
28
29
namespace
ost {
namespace
seq {
30
31
38
class
DLLEXPORT_OST_SEQ
AlignedRegion
{
39
public
:
40
typedef
AlignedColumnIterator
iterator
;
41
AlignedRegion
(
const
AlignmentHandle
& aln,
42
int
start,
int
end
,
int
master=-1);
43
45
int
GetEnd()
const
;
47
int
GetStart()
const
;
48
int
GetMaster()
const
;
49
void
SetMaster(
int
master);
51
void
Delete();
54
void
Replace(
const
AlignedRegion
& aln_r);
55
58
void
ShiftLeft(
int
n);
59
63
void
ShiftRight(
int
n);
64
68
int
GetLength()
const
;
69
71
AlignmentHandle
GetAlignmentHandle()
const
;
72
76
AlignedColumn
operator[](
int
index)
const
;
77
79
AlignedColumnIterator
begin
();
81
AlignedColumnIterator
end
();
82
83
bool
operator==
(
const
AlignedRegion
& rhs)
const
;
84
bool
operator!=
(
const
AlignedRegion
& rhs)
const
;
85
private
:
86
AlignmentHandle
aln_;
87
int
start_;
88
int
end_ ;
89
int
master_;
90
};
91
92
typedef
std::vector<AlignedRegion>
AlignedRegionList
;
93
94
}}
95
96
#endif
Generated on Mon Nov 11 2013 09:56:13 for OpenStructure by
1.8.1.1