yat  0.21pre
BamPair.h
1 #ifndef theplu_yat_omic_bam_pair
2 #define theplu_yat_omic_bam_pair
3 
4 // $Id: BamPair.h 4089 2021-09-07 00:56:40Z peter $
5 
6 /*
7  Copyright (C) 2014, 2018, 2021 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 yat. 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 
55 
59  BamRead& first(void);
60 
64  const BamRead& first(void) const;
65 
69  BamRead& second(void);
70 
74  const BamRead& second(void) const;
75 
76  private:
77  BamRead first_;
78  BamRead second_;
79  };
80 
81 
92  {
93  public:
97  BamPairProxy(void);
98 
106  BamPairProxy(const BamRead* first, const BamRead* second);
107 
111  const BamRead& first(void) const;
112 
116  const BamRead& second(void) const;
117 
121  operator BamPair() const;
122  private:
123  const BamRead* first_;
124  const BamRead* second_;
125  };
126 
127 }}}
128 #endif
const BamRead & first(void) const
BamRead & first(void)
access first BamRead
Definition: BamPair.h:34
BamPair(void)
default constructor
The Department of Theoretical Physics namespace as we define it.
BamPairProxy(void)
Default constructor.
Definition: BamPair.h:91
Class holding a bam query.
Definition: BamRead.h:51
const BamRead & second(void) const
BamRead & second(void)
access second BamRead

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14