Public Member Functions | Protected Member Functions | Friends | List of all members
icl_core::RingBuffer< T >::iterator Class Reference

#include <RingBuffer.h>

Inheritance diagram for icl_core::RingBuffer< T >::iterator:
Inheritance graph
[legend]

Public Member Functions

 iterator (const iterator &other)
 
T & operator* () const
 
T * operator-> () const
 
iteratoroperator= (const iterator &other)
 
- Public Member Functions inherited from icl_core::RingBuffer< T >::const_iterator
 const_iterator (const const_iterator &other)
 
bool operator!= (const const_iterator &other) const
 
const T & operator* () const
 
const_iterator operator+ (difference_type offset) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator+= (difference_type offset)
 
const_iterator operator- (difference_type offset) const
 
difference_type operator- (const const_iterator &other) const
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator-= (difference_type offset)
 
const T * operator-> () const
 
const_iteratoroperator= (const const_iterator &other)
 
bool operator== (const const_iterator &other) const
 

Protected Member Functions

 iterator (const T *current, const T *cbegin, const T *cend, const T *begin)
 
- Protected Member Functions inherited from icl_core::RingBuffer< T >::const_iterator
 const_iterator (const T *current, const T *cbegin, const T *cend, const T *begin)
 

Friends

class RingBuffer
 

Additional Inherited Members

- Protected Attributes inherited from icl_core::RingBuffer< T >::const_iterator
const T * m_begin
 Actual first value in the container. More...
 
const T * m_cbegin
 Beginning of the container. More...
 
const T * m_cend
 End of the container. More...
 
const T * m_current
 

Detailed Description

template<typename T>
class icl_core::RingBuffer< T >::iterator

Iterator for RingBuffers. Extends const_iterator by providing non-const access to the underlying pointed-to element. This is accomplished via const_cast<>() in order to avoid code duplication.

Definition at line 174 of file RingBuffer.h.

Constructor & Destructor Documentation

template<typename T>
icl_core::RingBuffer< T >::iterator::iterator ( const iterator other)
inline

Definition at line 179 of file RingBuffer.h.

template<typename T>
icl_core::RingBuffer< T >::iterator::iterator ( const T *  current,
const T *  cbegin,
const T *  cend,
const T *  begin 
)
inlineprotected

Definition at line 196 of file RingBuffer.h.

Member Function Documentation

template<typename T>
T& icl_core::RingBuffer< T >::iterator::operator* ( ) const
inline

Definition at line 192 of file RingBuffer.h.

template<typename T>
T* icl_core::RingBuffer< T >::iterator::operator-> ( ) const
inline

Definition at line 193 of file RingBuffer.h.

template<typename T>
iterator& icl_core::RingBuffer< T >::iterator::operator= ( const iterator other)
inline

Definition at line 183 of file RingBuffer.h.

Friends And Related Function Documentation

template<typename T>
friend class RingBuffer
friend

Definition at line 176 of file RingBuffer.h.


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


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:59