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 | |
reference | operator* () const |
Returns a reference to the current element. | |
ReverseIterator & | operator++ () |
Advances the iterator. | |
ReverseIterator | operator++ (int) |
Advances the iterator. | |
pointer | operator-> () |
Returns a pointer to the current element. | |
ReverseIterator (ScrollingBuffer &buffer, int64_t index=0) | |
Constructor. | |
Private Attributes | |
ScrollingBuffer & | buffer |
Reference to the buffer. | |
int64_t | index |
Iterator index inside the buffer (counted from the non-reversed start) | |
Friends | |
bool | operator!= (const ReverseIterator &lhs, const ReverseIterator &rhs) |
Inequality comparison operator. | |
bool | operator== (const ReverseIterator &lhs, const ReverseIterator &rhs) |
Equality comparison operator. | |
Reverse Iterator.
Definition at line 269 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ReverseIterator::difference_type |
Signed integer type (usually std::ptrdiff_t)
Definition at line 273 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ReverseIterator::iterator_category |
To categorize the iteration direction.
Definition at line 272 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ReverseIterator::pointer |
value_type*
Definition at line 275 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ReverseIterator::reference |
Definition at line 276 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ReverseIterator::value_type |
T.
Definition at line 274 of file ScrollingBuffer.hpp.
|
inlineexplicit |
Constructor.
[in] | buffer | Mutable reference to the buffer of the iterator |
[in] | index | Iterator index inside the buffer (counted from the non-reversed start) |
Definition at line 281 of file ScrollingBuffer.hpp.
|
inline |
Returns a reference to the current element.
Definition at line 285 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 290 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 297 of file ScrollingBuffer.hpp.
|
inline |
Returns a pointer to the current element.
Definition at line 287 of file ScrollingBuffer.hpp.
|
friend |
Inequality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 313 of file ScrollingBuffer.hpp.
|
friend |
Equality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 308 of file ScrollingBuffer.hpp.
|
private |
Reference to the buffer.
Definition at line 316 of file ScrollingBuffer.hpp.
|
private |
Iterator index inside the buffer (counted from the non-reversed start)
Definition at line 317 of file ScrollingBuffer.hpp.