1 #ifndef theplu_yat_omic_bam_read_iterator 2 #define theplu_yat_omic_bam_read_iterator 27 #include "config_bam.h" 29 #include YAT_SAM_HEADER 31 #include <boost/iterator/iterator_facade.hpp> 32 #include <boost/shared_ptr.hpp> 61 :
public boost::iterator_facade<
62 BamReadIterator, const BamRead, std::input_iterator_tag
116 friend class boost::iterator_core_access;
117 BamReadIterator::reference dereference(
void)
const;
119 void increment(
void);
130 virtual ~Actor(
void);
131 virtual void increment(
void)=0;
137 class AllActor :
public Actor
142 void increment(
void);
146 class IndexActor :
public Actor
149 IndexActor(
InBamFile& bf, int32_t tid, int32_t begin, int32_t end);
150 void increment(
void);
153 boost::shared_ptr<hts_itr_t> iter_;
155 boost::shared_ptr<__bam_iter_t> iter_;
159 boost::shared_ptr<Actor> actor_;
161 struct IndexDestroyer
164 void operator()(hts_itr_t* i)
const 169 void operator()(bam_iter_t i)
const The Department of Theoretical Physics namespace as we define it.
Class holding a bam query.
Definition: BamRead.h:53
BamReadIterator(void)
Contructs end of file iterator.
Definition: BamFile.h:132
class to iterate through a InBamFile
Definition: BamReadIterator.h:60