Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
Iterator over the descendants of a given vertex. More...
#include <Union_find.hpp>
Constructors | |
Descendants_iterator (void) | |
Descendants_iterator (Vertex *father, Vertex_list_iterator begin, Vertex_list_iterator end, const T_Union_find_base< T, VertexDS, InternalVertexTag > *engine) | |
Constructs the iterator by initalizing the father, the engine and the range of children of father. More... | |
Operators | |
const Vertex * | operator* (void) const |
Value returned when the iterator is dereferenced. More... | |
Vertex * | operator* (void) |
Value returned when the iterator is dereferenced. More... | |
Descendants_iterator | operator++ (int) |
Postfix increment of the iterator. More... | |
Iterator over the descendants of a given vertex.
Recursive iterator over all the vertices having the given vertex as father. It inherits from the stl iterator base class instantiated with the input iterator tag, and the Vertex as value type.
|
inline |
Constructs the iterator by initalizing the father, the engine and the range of children of father.
|
inline |
Value returned when the iterator is dereferenced.
It is the current value of the iterator over the children of m_vh.
|
inline |
Value returned when the iterator is dereferenced.
It is the current value of the iterator over the children of m_vh.
|
inline |
Postfix increment of the iterator.
If the current vertex has children, we first visit the children. When it is finished, we continue to the next vertex. If there is no more vertex, we return to the father.
if there is a child pointed by m_begin, i.e another child of m_vh
if m_begin is at the end of children of m_vh, we return the father. If there is no more father, it is finished.