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

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

 Iterator (ScrollingBuffer &buffer, size_t index=0)
 Constructor.
 
reference operator* () const
 Returns a reference to the current element.
 
Iteratoroperator++ ()
 Advances the iterator.
 
Iterator 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 >::Iterator

Iterator.

Constructor & Destructor Documentation

◆ Iterator()

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

Constructor.

Parameters
[in]bufferMutable 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: