RADLib
RADical C++ application framework
RADData::RADRingBuffer< T, Alloc >::const_iterator Class Reference

Const forward iterator over logical ring order. More...

#include <RADDataStructures.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using difference_type = std::ptrdiff_t
 
using pointer = const T *
 
using reference = const T &
 

Public Member Functions

 const_iterator (const RADRingBuffer *owner, size_t offset)
 
const T & operator* () const
 
const_iteratoroperator++ ()
 
bool operator!= (const const_iterator &other) const
 

Detailed Description

template<typename T, typename Alloc = std::allocator<T>>
class RADData::RADRingBuffer< T, Alloc >::const_iterator

Const forward iterator over logical ring order.

Member Typedef Documentation

◆ difference_type

template<typename T , typename Alloc = std::allocator<T>>
using RADData::RADRingBuffer< T, Alloc >::const_iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename T , typename Alloc = std::allocator<T>>
using RADData::RADRingBuffer< T, Alloc >::const_iterator::iterator_category = std::forward_iterator_tag

◆ pointer

template<typename T , typename Alloc = std::allocator<T>>
using RADData::RADRingBuffer< T, Alloc >::const_iterator::pointer = const T*

◆ reference

template<typename T , typename Alloc = std::allocator<T>>
using RADData::RADRingBuffer< T, Alloc >::const_iterator::reference = const T&

◆ value_type

template<typename T , typename Alloc = std::allocator<T>>
using RADData::RADRingBuffer< T, Alloc >::const_iterator::value_type = T

Constructor & Destructor Documentation

◆ const_iterator()

template<typename T , typename Alloc = std::allocator<T>>
RADData::RADRingBuffer< T, Alloc >::const_iterator::const_iterator ( const RADRingBuffer owner,
size_t  offset 
)
inline

Member Function Documentation

◆ operator!=()

template<typename T , typename Alloc = std::allocator<T>>
bool RADData::RADRingBuffer< T, Alloc >::const_iterator::operator!= ( const const_iterator other) const
inline

◆ operator*()

template<typename T , typename Alloc = std::allocator<T>>
const T& RADData::RADRingBuffer< T, Alloc >::const_iterator::operator* ( ) const
inline

◆ operator++()

template<typename T , typename Alloc = std::allocator<T>>
const_iterator& RADData::RADRingBuffer< T, Alloc >::const_iterator::operator++ ( )
inline

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