yat  0.13.2pre
algorithm.h
1 #ifndef theplu_yat_omic_algorithm
2 #define theplu_yat_omic_algorithm
3 
4 // $Id: algorithm.h 3295 2014-07-25 04:24:39Z peter $
5 
6 /*
7  Copyright (C) 2012, 2013, 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 "BamPairIterator.h"
26 
27 namespace theplu {
28 namespace yat {
29 namespace omic {
30 
50  template<class Iterator, class Visitor>
51  void bam_pair_analyse(Iterator first, Iterator last, Visitor& visitor)
52  {
53  BamPairIterator<Iterator> iter(first, last);
54  BamPairIterator<Iterator> end(last, last);
55  for (; iter!=end; ++iter)
56  visitor((*iter).first(), (*iter).second());
57  }
58 
59 }}}
60 #endif
void bam_pair_analyse(Iterator first, Iterator last, Visitor &visitor)
Definition: algorithm.h:51
Definition: BamPairIterator.h:62

Generated on Wed Jan 4 2017 02:23:07 for yat by  doxygen 1.8.5