OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aligned_column.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-2020 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_COLUMN_HH
20 #define OST_SEQ_ALIGNED_COLUMN_HH
21 
22 /*
23  Author: Marco Biasini
24  */
25 #include <ost/seq/module_config.hh>
27 namespace ost { namespace seq {
28 
32 public:
33  AlignedColumn(const AlignmentHandle& aln, int index);
35  AlignedColumn();
39  int GetIndex() const;
40 
41  char operator[](int row) const;
42 
46  int GetResidueIndex(int row) const;
47 
51  int GetRowCount() const;
52 
56  mol::ResidueView GetResidue(int row) const;
57 private:
58  void CheckRowValidity(int row) const;
59 
60  AlignmentHandle aln_;
61  int index_;
62 };
63 
64 DLLEXPORT_OST_SEQ std::ostream& operator<<(std::ostream& os,
65  const AlignedColumn& col);
66 
67 }}
68 
69 #endif
#define DLLEXPORT_OST_SEQ
DLLEXPORT_OST_SEQ std::ostream & operator<<(std::ostream &os, const AlignedColumn &col)
Provides access to a column in a aligned region or a sequence alignment.
representation of a multiple sequence alignemnt consisting of two or more sequences ...