Bifrost
|
See UnitigColors::const_iterator. More...
Inherits iterator< std::forward_iterator_tag, pair< size_t, size_t > >.
Public Member Functions | |
UnitigColors_const_iterator () | |
Constructor of an empty iterator. More... | |
UnitigColors_const_iterator (const UnitigColors_const_iterator &o) | |
Copy constructor. More... | |
~UnitigColors_const_iterator () | |
Destructor. | |
UnitigColors_const_iterator & | operator= (const UnitigColors_const_iterator &o) |
Copy assignment operator. More... | |
pair< size_t, size_t > | operator* () const |
Indirection operator. More... | |
size_t | getKmerPosition () const |
Get the k-mer position of the k-mer visited by the iterator. More... | |
size_t | getColorID () const |
Get the color of the k-mer visited by the iterator. More... | |
UnitigColors_const_iterator | operator++ (int) |
Postfix increment operator: it iterates over the next k-mer of the unitig having the current color or the first k-mer having the next color (if all k-mers having the current color have already been visited by this iterator). More... | |
UnitigColors_const_iterator & | operator++ () |
Prefix increment operator: it iterates over the next k-mer of the unitig having the current color or the first k-mer having the next color (if all k-mers having the current color have already been visited by this iterator). More... | |
UnitigColors_const_iterator & | nextColor () |
Color increment operator: it iterates over the first k-mer position of the next color. More... | |
bool | operator== (const UnitigColors_const_iterator &o) const |
Equality operator. More... | |
bool | operator!= (const UnitigColors_const_iterator &o) const |
Inequality operator. More... | |
UnitigColors::UnitigColors_const_iterator::UnitigColors_const_iterator | ( | ) |
Constructor of an empty iterator.
The resulting iterator cannott be used as it is because it is not associated with any UnitigColors.
UnitigColors::UnitigColors_const_iterator::UnitigColors_const_iterator | ( | const UnitigColors_const_iterator & | o | ) |
Copy constructor.
After the call to this function, the same iterator exists twice in memory.
o | is a constant reference to the const_iterator to copy. |
|
inline |
Get the color of the k-mer visited by the iterator.
It is equal to (*it).second.
|
inline |
Get the k-mer position of the k-mer visited by the iterator.
It is equal to (*it).first.
UnitigColors_const_iterator& UnitigColors::UnitigColors_const_iterator::nextColor | ( | ) |
Color increment operator: it iterates over the first k-mer position of the next color.
bool UnitigColors::UnitigColors_const_iterator::operator!= | ( | const UnitigColors_const_iterator & | o | ) | const |
Inequality operator.
|
inline |
Indirection operator.
UnitigColors_const_iterator UnitigColors::UnitigColors_const_iterator::operator++ | ( | int | ) |
Postfix increment operator: it iterates over the next k-mer of the unitig having the current color or the first k-mer having the next color (if all k-mers having the current color have already been visited by this iterator).
UnitigColors_const_iterator& UnitigColors::UnitigColors_const_iterator::operator++ | ( | ) |
Prefix increment operator: it iterates over the next k-mer of the unitig having the current color or the first k-mer having the next color (if all k-mers having the current color have already been visited by this iterator).
UnitigColors_const_iterator& UnitigColors::UnitigColors_const_iterator::operator= | ( | const UnitigColors_const_iterator & | o | ) |
Copy assignment operator.
After the call to this function, the same iterator exists twice in memory.
o | is a constant reference to the const_iterator to copy. |
bool UnitigColors::UnitigColors_const_iterator::operator== | ( | const UnitigColors_const_iterator & | o | ) | const |
Equality operator.