yat  0.21pre
BamRegion.h
1 #ifndef theplu_yat_omic_bam_region_
2 #define theplu_yat_omic_bam_region_
3 
4 // $Id: BamRegion.h 4272 2023-01-24 14:51:24Z peter $
5 
6 /*
7  Copyright (C) 2023 Peter Johansson
8 
9  This file is part of the yat library, https://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 <https://www.gnu.org/licenses/>.
23 */
24 
25 #include <htslib/hts.h>
26 
27 namespace theplu {
28 namespace yat {
29 namespace omic {
30 
38  class BamRegion
39  {
40  public:
42  BamRegion(void) = default;
43 
47  explicit BamRegion(int tid, hts_pos_t begin=0, hts_pos_t end=HTS_POS_MAX);
48 
52  int& tid(void);
53 
57  const int& tid(void) const;
58 
62  hts_pos_t& begin(void);
63 
67  const hts_pos_t& begin(void) const;
68 
72  hts_pos_t& end(void);
73 
77  const hts_pos_t& end(void) const;
78  private:
79  int tid_;
80  hts_pos_t begin_;
81  hts_pos_t end_;
82  };
83 
84 }}}
85 #endif
The Department of Theoretical Physics namespace as we define it.
Definition: BamRegion.h:38
BamRegion(void)=default
default constructor

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