Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
Base representation of an iterator over nested containers. More...
#include <Container_of_containers_iterator.hpp>
Public Types | |
typedef T_Container_of_containers_iterator_base< OuterContainerIterator, InnerContainerIterator > | Self |
The class itself. More... | |
typedef SBL::iterator< InnerContainerIterator > | Base |
Base iterator declaring only the types. More... | |
Constructors | |
T_Container_of_containers_iterator_base (const Self &It) | |
Constructs by copy. More... | |
T_Container_of_containers_iterator_base (const OuterContainerIterator &it, const OuterContainerIterator &it_end) | |
Constructs by initializing the start and the end of the outer container. More... | |
Operators | |
InnerContainerIterator::reference | operator* (void) |
Access to the data pointed by the iterator over the inner container. More... | |
const InnerContainerIterator::reference | operator* (void) const |
Const access to the data pointed by the iterator over the inner container. More... | |
Self & | operator++ (void) |
Increment the iterator over the inner container. More... | |
Self | operator++ (int) |
Post increment the iterator. More... | |
bool | operator== (const Self &it) const |
Check that two iterators are equal by comparing the outer and inner iterators. More... | |
bool | operator!= (const Self &it) const |
Check that two iterators are different by comparing the outer and inner iterators. More... | |
Base representation of an iterator over nested containers.
It inherits from the SBL::inner_iterator base class that defines all the types required for defining an iterator.
typedef SBL::iterator<InnerContainerIterator> Base |
Base iterator declaring only the types.
typedef T_Container_of_containers_iterator_base<OuterContainerIterator, InnerContainerIterator> Self |
The class itself.
|
inline |
Constructs by copy.
|
inline |
Constructs by initializing the start and the end of the outer container.
The iterator over the inner containers is automatically set to the beginning of the inner container pointed by it. If it points to the end of the outer container, a default iterator is created instead.
|
inline |
Check that two iterators are different by comparing the outer and inner iterators.
|
inline |
Access to the data pointed by the iterator over the inner container.
|
inline |
Const access to the data pointed by the iterator over the inner container.
|
inline |
Post increment the iterator.
|
inline |
Increment the iterator over the inner container.
If the end of the inner container is reached, the iterator over the outer container is incremented, and the iterator over the inner container is updated.
|
inline |
Check that two iterators are equal by comparing the outer and inner iterators.