yat  0.21pre
BamWriteIterator.h
1 #ifndef theplu_yat_omic_bam_write_iterator
2 #define theplu_yat_omic_bam_write_iterator
3 
4 // $Id: BamWriteIterator.h 4252 2022-11-18 02:54:04Z peter $
5 
6 /*
7  Copyright (C) 2012, 2013, 2017, 2018 Peter Johansson
8  Copyright (C) 2022 Jari Häkkinen
9 
10  This file is part of the yat library, http://dev.thep.lu.se/yat
11 
12  The yat library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU General Public License as
14  published by the Free Software Foundation; either version 3 of the
15  License, or (at your option) any later version.
16 
17  The yat library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with yat. If not, see <http://www.gnu.org/licenses/>.
24 */
25 
26 #include <boost/iterator/function_output_iterator.hpp>
27 
28 #include <functional>
29 
30 namespace theplu {
31 namespace yat {
32 namespace omic {
33 
34  class BamRead;
35  class OutBamFile;
36 
43  class BamWriter : public std::unary_function<const BamRead&, void>
44  {
45  public:
52  BamWriter(void);
53 
59  explicit BamWriter(OutBamFile& out);
60 
64  void operator()(const BamRead& b) const;
65  private:
66  OutBamFile* out_;
67  };
68 
69 
88  : public boost::function_output_iterator<BamWriter>
89  {
90  public:
98  BamWriteIterator(void);
99 
103  explicit BamWriteIterator(OutBamFile& out);
104  private:
105  };
106 }}}
107 #endif
The Department of Theoretical Physics namespace as we define it.
BamWriteIterator(void)
Default contructor.
Class holding a bam query.
Definition: BamRead.h:51
Definition: BamWriteIterator.h:43
BamWriter(void)
Default constructor.
void operator()(const BamRead &b) const
Output iterator for bam file.
Definition: BamWriteIterator.h:87
Definition: BamFile.h:245

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