Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Container_of_containers_const_iterator< OuterContainerConstIterator > Class Template Reference

Iterator iterator over nested non-mutable containers. More...

#include <Container_of_containers_iterator.hpp>

Constructors

 T_Container_of_containers_const_iterator (const Self &It)
 Constructs by copy.
 T_Container_of_containers_const_iterator (const OuterContainerConstIterator &it, const OuterContainerConstIterator &it_end)
 Constructs by initializing the start and the end of the outer container.

Operators

OuterContainerConstIterator::value_type::const_iterator::reference operator* (void)
 Access to the data pointed by the iterator over the inner container.
Selfoperator++ (void)
 Increment the iterator over the inner container.
bool operator== (const Self &it) const
 Check that two iterators are equal by comparing the outer and inner iterators.
bool operator!= (const Self &it) const
 Check that two iterators are different by comparing the outer and inner iterators.

Detailed Description

template<class OuterContainerConstIterator>
class SBL::CADS::T_Container_of_containers_const_iterator< OuterContainerConstIterator >

Iterator iterator over nested non-mutable containers.

...

Template Parameters
OuterContainerIteratorIterator type over the outer container.

Constructor & Destructor Documentation

◆ T_Container_of_containers_const_iterator() [1/2]

template<class OuterContainerConstIterator>
T_Container_of_containers_const_iterator ( const Self & It)
inline

Constructs by copy.

◆ T_Container_of_containers_const_iterator() [2/2]

template<class OuterContainerConstIterator>
T_Container_of_containers_const_iterator ( const OuterContainerConstIterator & it,
const OuterContainerConstIterator & it_end )
inline

Constructs by initializing the start and the end of the outer container.

Member Function Documentation

◆ operator!=()

bool operator!= ( const Self & it) const
inlineinherited

Check that two iterators are different by comparing the outer and inner iterators.

◆ operator*()

OuterContainerConstIterator::value_type::const_iterator::reference operator* ( void )
inlineinherited

Access to the data pointed by the iterator over the inner container.

◆ operator++()

T_Container_of_containers_iterator_base< OuterContainerConstIterator, OuterContainerConstIterator::value_type::const_iterator >::Self & operator++ ( void )
inlineinherited

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.

◆ operator==()

bool operator== ( const Self & it) const
inlineinherited

Check that two iterators are equal by comparing the outer and inner iterators.