0.3.0
Loading...
Searching...
No Matches
NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator Class Reference

Const reverse 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

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

Private Attributes

const ScrollingBufferbuffer
 Reference to the buffer.
 
int64_t index
 Iterator index inside the buffer (counted from the non-reversed start)
 

Friends

bool operator!= (const ConstReverseIterator &lhs, const ConstReverseIterator &rhs)
 Inequality comparison operator.
 
bool operator== (const ConstReverseIterator &lhs, const ConstReverseIterator &rhs)
 Equality comparison operator.
 

Detailed Description

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

Const reverse iterator.

Constructor & Destructor Documentation

◆ ConstReverseIterator()

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

Constructor.

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

Friends And Related Symbol Documentation

◆ operator!=

template<class T , size_t _Padding = 0>
bool operator!= ( const ConstReverseIterator & lhs,
const ConstReverseIterator & rhs )
friend

Inequality comparison operator.

Parameters
[in]lhsLeft-hand side
[in]rhsRight-hand side
Returns
False if elements are equal

◆ operator==

template<class T , size_t _Padding = 0>
bool operator== ( const ConstReverseIterator & lhs,
const ConstReverseIterator & rhs )
friend

Equality comparison operator.

Parameters
[in]lhsLeft-hand side
[in]rhsRight-hand side
Returns
True if elements are equal

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