Bifrost
|
Wrapper for class neighborIterator to iterate over the predecessors of a reference unitig used in a UnitigMap object. More...
Public Member Functions | |
ForwardCDBG (const UnitigMap< U, G, is_const > &um_) | |
Constructor. More... | |
bool | hasSuccessors () const |
Check if the unitig has at least one successor. More... | |
neighborIterator< U, G, is_const > | begin () const |
Return an iterator over the successors of a reference unitig. More... | |
neighborIterator< U, G, is_const > | end () const |
Return an iterator over the past-the-last successor of a reference unitig. More... | |
Wrapper for class neighborIterator to iterate over the predecessors of a reference unitig used in a UnitigMap object.
A ForwardCDBG object has 3 template parameters: the type of data associated with the unitigs of the graph, the type of data associated with the graph and a boolean indicating if this is a constant neighborIterator or not. Note that you are supposed to obtain an instance of this class from UnitigMap::getSuccessors() so you shouldn't have to instantiate an object ForwardCDBG and its template parameters yourself. The unitig data and graph data types should be the same as the ones used for the CompactedDBG the iterator is from. No specific order (such as a lexicographic one) is assumed during iteration.
|
explicit |
neighborIterator<U, G, is_const> ForwardCDBG< Unitig_data_t, Graph_data_t, is_const >::begin | ( | ) | const |
Return an iterator over the successors of a reference unitig.
The returned iterator is initialized over the first such successor, if there is one.
neighborIterator<U, G, is_const> ForwardCDBG< Unitig_data_t, Graph_data_t, is_const >::end | ( | ) | const |
Return an iterator over the past-the-last successor of a reference unitig.
bool ForwardCDBG< Unitig_data_t, Graph_data_t, is_const >::hasSuccessors | ( | ) | const |
Check if the unitig has at least one successor.