aimstil  5.0.5
til::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 <cathier/cyclic_iterator.h>

Inheritance diagram for til::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 til::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 36 of file cyclic_iterator.h.

Constructor & Destructor Documentation

◆ cyclic_iterator_base() [1/3]

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

Definition at line 45 of file cyclic_iterator.h.

◆ cyclic_iterator_base() [2/3]

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

Definition at line 48 of file cyclic_iterator.h.

◆ cyclic_iterator_base() [3/3]

template<typename TIterator>
template<typename TContainer >
til::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 51 of file cyclic_iterator.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 81 of file cyclic_iterator.h.

◆ operator*() [1/2]

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

Definition at line 64 of file cyclic_iterator.h.

◆ operator*() [2/2]

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

Definition at line 67 of file cyclic_iterator.h.

◆ operator++()

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

Definition at line 69 of file cyclic_iterator.h.

◆ operator--()

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

Definition at line 75 of file cyclic_iterator.h.


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