![]() |
0.5.0
|
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. | |
| Iterator & | operator++ () |
| Advances the iterator. | |
| Iterator | operator++ (int) |
| Advances the iterator. | |
| pointer | operator-> () |
| Returns a pointer to the current element. | |
Private Attributes | |
| ScrollingBuffer & | buffer |
| Reference to the buffer. | |
| size_t | index |
| Iterator index inside the buffer (counted from the start) | |
Friends | |
| bool | operator!= (const Iterator &lhs, const Iterator &rhs) |
| Inequality comparison operator. | |
| bool | operator== (const Iterator &lhs, const Iterator &rhs) |
| Equality comparison operator. | |
Definition at line 139 of file ScrollingBuffer.hpp.
| using NAV::ScrollingBuffer< T, _Padding >::Iterator::difference_type |
Signed integer type (usually std::ptrdiff_t)
Definition at line 143 of file ScrollingBuffer.hpp.
| using NAV::ScrollingBuffer< T, _Padding >::Iterator::iterator_category |
To categorize the iteration direction.
Definition at line 142 of file ScrollingBuffer.hpp.
| using NAV::ScrollingBuffer< T, _Padding >::Iterator::pointer |
value_type*
Definition at line 145 of file ScrollingBuffer.hpp.
| using NAV::ScrollingBuffer< T, _Padding >::Iterator::reference |
Definition at line 146 of file ScrollingBuffer.hpp.
| using NAV::ScrollingBuffer< T, _Padding >::Iterator::value_type |
T.
Definition at line 144 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 start) |
Definition at line 151 of file ScrollingBuffer.hpp.
|
inline |
Returns a reference to the current element.
Definition at line 155 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 160 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 167 of file ScrollingBuffer.hpp.
|
inline |
Returns a pointer to the current element.
Definition at line 157 of file ScrollingBuffer.hpp.
|
friend |
Inequality comparison operator.
| [in] | lhs | Left-hand side |
| [in] | rhs | Right-hand side |
Definition at line 183 of file ScrollingBuffer.hpp.
|
friend |
Equality comparison operator.
| [in] | lhs | Left-hand side |
| [in] | rhs | Right-hand side |
Definition at line 178 of file ScrollingBuffer.hpp.
|
private |
Reference to the buffer.
Definition at line 186 of file ScrollingBuffer.hpp.
|
private |
Iterator index inside the buffer (counted from the start)
Definition at line 187 of file ScrollingBuffer.hpp.