Skip to content

Struct CircularBuffer::BufferIterator

template <bool isConst>

ClassList > BufferIterator

Public Types

Type Name
typedef std::conditional< isConst, const CircularBuffer< value_type > *, CircularBuffer< value_type > * >::type cbuf_pointer
typedef ptrdiff_t difference_type
typedef std::random_access_iterator_tag iterator_category
typedef std::conditional< isConst, const value_type *, value_type * >::type pointer
typedef std::conditional< isConst, const value_type &, value_type & >::type reference
typedef T value_type

Public Functions

Type Name
BufferIterator ()
BufferIterator (const BufferIterator< false > & it)
bool operator!= (const BufferIterator & other) const
reference operator* ()
BufferIterator & operator++ ()
BufferIterator operator++ (int)
BufferIterator & operator+= (difference_type n)
BufferIterator & operator-- ()
BufferIterator operator-- (int)
BufferIterator & operator-= (difference_type n)
pointer operator-> ()
bool operator< (const BufferIterator & other) const
bool operator<= (const BufferIterator & other) const
bool operator== (const BufferIterator & other) const
bool operator> (const BufferIterator & other) const
bool operator>= (const BufferIterator & other) const
reference operator[] (size_type index)

Public Types Documentation

typedef cbuf_pointer

typedef std::conditional<isConst, const CircularBuffer<value_type>*, CircularBuffer<value_type>*>::type CircularBuffer< T >::BufferIterator< isConst >::cbuf_pointer;

typedef difference_type

typedef ptrdiff_t CircularBuffer< T >::BufferIterator< isConst >::difference_type;

typedef iterator_category

typedef std::random_access_iterator_tag CircularBuffer< T >::BufferIterator< isConst >::iterator_category;

typedef pointer

typedef std::conditional<isConst, const value_type*, value_type*>::type CircularBuffer< T >::BufferIterator< isConst >::pointer;

typedef reference

typedef std::conditional<isConst, const value_type&, value_type&>::type CircularBuffer< T >::BufferIterator< isConst >::reference;

typedef value_type

typedef T CircularBuffer< T >::BufferIterator< isConst >::value_type;

Public Functions Documentation

function BufferIterator [½]

inline BufferIterator::BufferIterator () 

function BufferIterator [2/2]

inline BufferIterator::BufferIterator (
    const BufferIterator< false > & it
) 

function operator!=

inline bool BufferIterator::operator!= (
    const BufferIterator & other
) const

function operator*

inline reference BufferIterator::operator* () 

function operator++

inline BufferIterator & BufferIterator::operator++ () 

function operator++

inline BufferIterator BufferIterator::operator++ (
    int
) 

function operator+=

inline BufferIterator & BufferIterator::operator+= (
    difference_type n
) 

function operator--

inline BufferIterator & BufferIterator::operator-- () 

function operator--

inline BufferIterator BufferIterator::operator-- (
    int
) 

function operator-=

inline BufferIterator & BufferIterator::operator-= (
    difference_type n
) 

function operator->

inline pointer BufferIterator::operator-> () 

function operator<

inline bool BufferIterator::operator< (
    const BufferIterator & other
) const

function operator<=

inline bool BufferIterator::operator<= (
    const BufferIterator & other
) const

function operator==

inline bool BufferIterator::operator== (
    const BufferIterator & other
) const

function operator>

inline bool BufferIterator::operator> (
    const BufferIterator & other
) const

function operator>=

inline bool BufferIterator::operator>= (
    const BufferIterator & other
) const

function operator[]

inline reference BufferIterator::operator[] (
    size_type index
) 

Friends Documentation

friend CircularBuffer< T >

class BufferIterator::CircularBuffer< T > (
    CircularBuffer < T >
) 

friend operator+

inline BufferIterator BufferIterator::operator+ (
    BufferIterator lhsiter,
    difference_type n
) 

friend operator+

inline BufferIterator BufferIterator::operator+ (
    difference_type n,
    BufferIterator rhsiter
) 

friend operator-

inline BufferIterator BufferIterator::operator- (
    BufferIterator lhsiter,
    difference_type n
) 

friend operator-

inline difference_type BufferIterator::operator- (
    const BufferIterator & lhsiter,
    const BufferIterator & rhsiter
) 


The documentation for this class was generated from the following file src/utils/CircularBuffer.h