![]() |
0.5.0
|
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 ConstReverseIterator & | operator++ () |
Advances the iterator. | |
ConstReverseIterator | operator++ (int) |
Advances the iterator. | |
pointer | operator-> () |
Returns a pointer to the current element. |
Private Attributes | |
const ScrollingBuffer & | buffer |
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. |
Const reverse iterator.
Definition at line 332 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator::difference_type |
Signed integer type (usually std::ptrdiff_t)
Definition at line 336 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator::iterator_category |
To categorize the iteration direction.
Definition at line 335 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator::pointer |
value_type*
Definition at line 338 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator::reference |
Definition at line 339 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstReverseIterator::value_type |
T.
Definition at line 337 of file ScrollingBuffer.hpp.
|
inlineexplicit |
Constructor.
[in] | buffer | Immutable reference to the buffer of the iterator |
[in] | index | Iterator index inside the buffer (counted from the non-reversed start) |
Definition at line 344 of file ScrollingBuffer.hpp.
|
inline |
Returns a reference to the current element.
Definition at line 348 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 353 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 360 of file ScrollingBuffer.hpp.
|
inline |
Returns a pointer to the current element.
Definition at line 350 of file ScrollingBuffer.hpp.
|
friend |
Inequality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 376 of file ScrollingBuffer.hpp.
|
friend |
Equality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 371 of file ScrollingBuffer.hpp.
|
private |
Reference to the buffer.
Definition at line 379 of file ScrollingBuffer.hpp.
|
private |
Iterator index inside the buffer (counted from the non-reversed start)
Definition at line 380 of file ScrollingBuffer.hpp.