aimsdata  5.1.2
Neuroimaging data handling
aims::detail::cyclic_iterator_base< TIterator > Class Template Reference

TODO: when implementing the operator+=, it might be that we need to split the class in different parts according to TIterator::iterator_category – unless we can simply specialize the operator+= outside the class, and use enable_if! More...

#include <aims/utility/cyclic_iterator.h>

Inheritance diagram for aims::detail::cyclic_iterator_base< TIterator >:

Public Member Functions

 cyclic_iterator_base ()
 
template<typename TContainer >
 cyclic_iterator_base (TContainer &c)
 
template<typename TContainer >
 cyclic_iterator_base (TContainer &c, const TIterator &i)
 NB: it is assumed that i does point on one of the element of c (end() accepted) More...
 
std::iterator_traits< TIterator >::reference operator* ()
 
const std::iterator_traits< TIterator >::reference operator* () const
 
void operator++ ()
 
void operator-- ()
 
bool operator!= (const TIterator &i)
 

Detailed Description

template<typename TIterator>
class aims::detail::cyclic_iterator_base< TIterator >

TODO: when implementing the operator+=, it might be that we need to split the class in different parts according to TIterator::iterator_category – unless we can simply specialize the operator+= outside the class, and use enable_if!

Definition at line 38 of file cyclic_iterator.h.

Constructor & Destructor Documentation

◆ cyclic_iterator_base() [1/3]

template<typename TIterator >
aims::detail::cyclic_iterator_base< TIterator >::cyclic_iterator_base ( )
inline

Definition at line 47 of file cyclic_iterator.h.

◆ cyclic_iterator_base() [2/3]

template<typename TIterator >
template<typename TContainer >
aims::detail::cyclic_iterator_base< TIterator >::cyclic_iterator_base ( TContainer &  c)
inline

Definition at line 50 of file cyclic_iterator.h.

◆ cyclic_iterator_base() [3/3]

template<typename TIterator >
template<typename TContainer >
aims::detail::cyclic_iterator_base< TIterator >::cyclic_iterator_base ( TContainer &  c,
const TIterator &  i 
)
inline

NB: it is assumed that i does point on one of the element of c (end() accepted)

Definition at line 53 of file cyclic_iterator.h.

Member Function Documentation

◆ operator!=()

template<typename TIterator >
bool aims::detail::cyclic_iterator_base< TIterator >::operator!= ( const TIterator &  i)
inline

Definition at line 83 of file cyclic_iterator.h.

◆ operator*() [1/2]

template<typename TIterator >
std::iterator_traits<TIterator>::reference aims::detail::cyclic_iterator_base< TIterator >::operator* ( )
inline

Definition at line 66 of file cyclic_iterator.h.

◆ operator*() [2/2]

template<typename TIterator >
const std::iterator_traits<TIterator>::reference aims::detail::cyclic_iterator_base< TIterator >::operator* ( ) const
inline

Definition at line 69 of file cyclic_iterator.h.

◆ operator++()

template<typename TIterator >
void aims::detail::cyclic_iterator_base< TIterator >::operator++ ( )
inline

Definition at line 71 of file cyclic_iterator.h.

◆ operator--()

template<typename TIterator >
void aims::detail::cyclic_iterator_base< TIterator >::operator-- ( )
inline

Definition at line 77 of file cyclic_iterator.h.


The documentation for this class was generated from the following file: