yat
0.14.5pre
|
Iterator over a CIGAR. More...
#include <yat/utility/CigarIterator.h>
Public Member Functions | |
CigarIterator (void) | |
Default constructor. | |
CigarIterator (BASE p, size_t offset=0) | |
BASE | base (void) const |
Friends | |
class | boost::iterator_core_access |
Iterator over a CIGAR.
A CIGAR string is typically represented as a compact array, i.e., an array MMMMMMDDMMMM
is represented as 6M2D4M
. This class is a proxy that allows iterating over a CIGAR as though the array was MMMMMMDDMMMM
.
CigarIterator is a Readable Iterator (not mutable) and models a Bidirectional Traversal Iterator. Its value_type is uint8_t
. Since no uint8_t
is stored in CIGAR, the dereference operator calculates the CIGAR element to return and returns by value. CigarIterator is therefore an Input Iterator.
Type Requirement:
BASE
is a Readable IteratorBASE
is a Bidirectional Traversal Iterator
|
explicit |
Construct an iterator that points to element offset in p. If p corresponds to 5M
and offset is 2, the iterator points to the third M
.
BASE theplu::yat::utility::CigarIterator< BASE >::base | ( | void | ) | const |