![]() |
0.5.0
|
Const 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 | |
ConstIterator (const ScrollingBuffer &buffer, size_t index=0) | |
Constructor. | |
reference | operator* () const |
Returns a reference to the current element. | |
const ConstIterator & | operator++ () |
Advances the iterator. | |
ConstIterator | operator++ (int) |
Advances the iterator. | |
pointer | operator-> () |
Returns a pointer to the current element. |
Private Attributes | |
const ScrollingBuffer & | buffer |
Reference to the buffer. | |
size_t | index |
Iterator index inside the buffer (counted from the start) |
Friends | |
bool | operator!= (const ConstIterator &lhs, const ConstIterator &rhs) |
Inequality comparison operator. | |
bool | operator== (const ConstIterator &lhs, const ConstIterator &rhs) |
Equality comparison operator. |
Const iterator.
Definition at line 200 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstIterator::difference_type |
Signed integer type (usually std::ptrdiff_t)
Definition at line 204 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstIterator::iterator_category |
To categorize the iteration direction.
Definition at line 203 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstIterator::pointer |
value_type*
Definition at line 206 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstIterator::reference |
Definition at line 207 of file ScrollingBuffer.hpp.
using NAV::ScrollingBuffer< T, _Padding >::ConstIterator::value_type |
T.
Definition at line 205 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 start) |
Definition at line 212 of file ScrollingBuffer.hpp.
|
inline |
Returns a reference to the current element.
Definition at line 216 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 221 of file ScrollingBuffer.hpp.
|
inline |
Advances the iterator.
Definition at line 228 of file ScrollingBuffer.hpp.
|
inline |
Returns a pointer to the current element.
Definition at line 218 of file ScrollingBuffer.hpp.
|
friend |
Inequality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 244 of file ScrollingBuffer.hpp.
|
friend |
Equality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
Definition at line 239 of file ScrollingBuffer.hpp.
|
private |
Reference to the buffer.
Definition at line 247 of file ScrollingBuffer.hpp.
|
private |
Iterator index inside the buffer (counted from the start)
Definition at line 248 of file ScrollingBuffer.hpp.