Public Member Functions | Friends | List of all members
spore::CircularBuffer< T >::const_iterator Class Reference

Constant iterator class. More...

#include <circular_buffer.h>

Public Member Functions

 const_iterator (const const_iterator &src)
 
const_iteratoroperator++ ()
 
const_iteratoroperator-- ()
 
T const & operator* () const
 

Friends

class CircularBuffer
 

Detailed Description

template<typename T>
class spore::CircularBuffer< T >::const_iterator

Constant iterator class.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename T >
spore::CircularBuffer< T >::const_iterator::const_iterator ( const const_iterator src)
inline

Copy constructor.

Member Function Documentation

◆ operator*()

template<typename T >
T const& spore::CircularBuffer< T >::const_iterator::operator* ( ) const
inline

Iterator dereferencing operator. Returns a constant reference to the buffer content at the current location.

◆ operator++()

template<typename T >
const_iterator& spore::CircularBuffer< T >::const_iterator::operator++ ( )
inline

Iterator increment. Wraps around at limits of the buffer.

◆ operator--()

template<typename T >
const_iterator& spore::CircularBuffer< T >::const_iterator::operator-- ( )
inline

Iterator decrement. Wraps around at limits of the buffer.


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