yat  0.12.3pre
BamPair.h
1 #ifndef theplu_yat_omic_bam_pair
2 #define theplu_yat_omic_bam_pair
3 
4 // $Id: BamPair.h 3176 2014-03-15 09:10:37Z peter $
5 
6 /*
7  Copyright (C) 2014 Peter Johansson
8 
9  This file is part of the yat library, http://dev.thep.lu.se/yat
10 
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 3 of the
14  License, or (at your option) any later version.
15 
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 #include "BamRead.h"
26 
27 namespace theplu {
28 namespace yat {
29 namespace omic {
30 
34  class BamPair
35  {
36  public:
42  BamPair(void);
43 
47  BamPair(const BamRead& first, const BamRead& second);
48 
52  BamRead& first(void);
53 
57  const BamRead& first(void) const;
58 
62  BamRead& second(void);
63 
67  const BamRead& second(void) const;
68 
69  private:
70  BamRead first_;
71  BamRead second_;
72  };
73 
74 
85  {
86  public:
90  BamPairProxy(void);
91 
99  BamPairProxy(const BamRead* first, const BamRead* second);
100 
104  const BamRead& first(void) const;
105 
109  const BamRead& second(void) const;
110 
114  operator BamPair() const;
115  private:
116  const BamRead* first_;
117  const BamRead* second_;
118  };
119 
120 }}}
121 #endif
BamRead & first(void)
access first BamRead
Definition: BamPair.h:34
BamPair(void)
default constructor
const BamRead & second(void) const
BamPairProxy(void)
Default constructor.
Definition: BamPair.h:84
Class holding a bam query.
Definition: BamRead.h:53
const BamRead & first(void) const
BamRead & second(void)
access second BamRead

Generated on Mon Jun 1 2015 12:29:51 for yat by  doxygen 1.8.5