yat
0.20.3pre
|
#include <yat/omic/BamPairIterator.h>
Public Member Functions | |
BamPairIterator (void) | |
default constructor | |
BamPairIterator (Base begin, Base end) | |
BamPairIterator::pointer | operator-> (void) const |
Friends | |
class | boost::iterator_core_access |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Base > | |
BamPairIterator< Base > | bam_pair_iterator (Base base, Base end) |
template<typename Base > | |
BamPairIterator< Base > | bam_pair_iterator (Base end) |
template<typename Base > | |
BamPairIterator2< Base > | bam_pair_iterator2 (Base base, Base end) |
template<typename Base > | |
BamPairIterator2< Base > | bam_pair_iterator2 (Base end) |
Type Requirments:
Base
is a Readable IteratorBase
is a Single Pass Iteratorvalue_type
is BamReadThis iterator works on a sorted range [begin, end) and provides a convenient way to access the pairs rather than the reads individually. When BamPairIterator is incremented, rather than just step to next element in [begin, end), BamPairIterator keeps stepping until it finds a read whose mate it has already seen, and operator* return the pair of BamReads.
The resulting iterator is sorted with respect to second()
.
Note that BamPairIterator is a single-pass iterator, i.e., once it is incremented the behaviour of its copies is undefined.
|
explicit |
Creates an iterator that will work on [begin, end).
[first, last
) must be sorted or behaviour is undefined.
|
inline |
This is workaround implementation of operator-> when implementation in base class (boost) does not compile. This implementation may be slow, so when using old boost it often prefereble to use operator*.
|
related |
Convenient function to create BamPairIterator
|
related |
Convenient function to create BamPairIterator that works on empty range. Equivalent to bam_pair_iterator(end, end).
|
related |
Convenient function to create BamPairIterator
|
related |
Convenient function to create BamPairIterator that works on empty range. Equivalent to bam_pair_iterator(end, end).