Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::icircular_buffer< T >::const_iterator Class Reference

Iterator iterating through the circular buffer. More...

#include <circular_buffer.h>

Public Member Functions

 const_iterator ()
 Constructor.
 
 const_iterator (const typename icircular_buffer::iterator &other)
 Copy Constructor from iterator.
 
 const_iterator (const const_iterator &other)
 Copy Constructor from const iterator.
 
const_iteratoroperator= (const typename icircular_buffer::iterator &other)
 Assignment operator.
 
const_iteratoroperator= (const const_iterator &other)
 Assignment operator.
 
const_reference operator* () const
 
const_pointer operator-> () const
 -> operator
 
const_reference operator[] (size_t index) const
 [] operator
 
const_iteratoroperator++ ()
 Pre-increment.
 
const_iterator operator++ (int)
 Post increment.
 
const_iteratoroperator-- ()
 Pre-decrement.
 
const_iterator operator-- (int)
 Post increment.
 
const_iteratoroperator+= (int n)
 Add offset.
 
const_iteratoroperator-= (int n)
 Subtract offset.
 
difference_type get_index () const
 
const icircular_buffercontainer () const
 
pointer get_buffer () const
 

Protected Member Functions

 const_iterator (const icircular_buffer< T > *picb_, size_type current_)
 Protected constructor. Only icircular_buffer can create one.
 

Friends

class icircular_buffer
 
const_iterator operator+ (const const_iterator &lhs, int n)
 Add offset.
 
const_iterator operator- (const const_iterator &lhs, int n)
 Subtract offset.
 
bool operator== (const const_iterator &lhs, const const_iterator &rhs)
 Equality operator.
 
bool operator!= (const const_iterator &lhs, const const_iterator &rhs)
 Inequality operator.
 
bool operator< (const const_iterator &lhs, const const_iterator &rhs)
 
bool operator<= (const const_iterator &lhs, const const_iterator &rhs)
 
bool operator> (const const_iterator &lhs, const const_iterator &rhs)
 
bool operator>= (const const_iterator &lhs, const const_iterator &rhs)
 

Additional Inherited Members

- Public Types inherited from etl::iterator< ETL_OR_STD::random_access_iterator_tag, const T >
typedef const T value_type
 
typedef ptrdiff_t difference_type
 
typedef const Tpointer
 
typedef const Treference
 
typedef ETL_OR_STD::random_access_iterator_tag iterator_category
 

Detailed Description

template<typename T>
class etl::icircular_buffer< T >::const_iterator

Iterator iterating through the circular buffer.

Member Function Documentation

◆ operator*()

template<typename T >
const_reference etl::icircular_buffer< T >::const_iterator::operator* ( ) const
inline
  • operator

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