0.2.0
Loading...
Searching...
No Matches
NAV::ScrollingBuffer< T, _Padding >::ConstIterator Class Reference

Const iterator. More...

Public Types

using difference_type
 Signed integer type (usually std::ptrdiff_t)
 
using iterator_category
 To categorize the iteration direction.
 
using pointer
 value_type*
 
using reference
 value_type&
 
using value_type
 T.
 

Public Member Functions

 ConstIterator (const ScrollingBuffer &buffer, size_t index=0)
 Constructor.
 
reference operator* () const
 Returns a reference to the current element.
 
const ConstIteratoroperator++ ()
 Advances the iterator.
 
ConstIterator operator++ (int)
 Advances the iterator.
 
pointer operator-> ()
 Returns a pointer to the current element.
 

Detailed Description

template<class T, size_t _Padding = 0>
class NAV::ScrollingBuffer< T, _Padding >::ConstIterator

Const iterator.

Constructor & Destructor Documentation

◆ ConstIterator()

template<class T , size_t _Padding = 0>
NAV::ScrollingBuffer< T, _Padding >::ConstIterator::ConstIterator ( const ScrollingBuffer & buffer,
size_t index = 0 )
inlineexplicit

Constructor.

Parameters
[in]bufferImmutable reference to the buffer of the iterator
[in]indexIterator index inside the buffer (counted from the start)

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