![]() |
0.3.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. | |
|
inlineexplicit |
Constructor.
[in] | buffer | Mutable reference to the buffer of the iterator |
[in] | index | Iterator index inside the buffer (counted from the start) |
|
friend |
Inequality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |
|
friend |
Equality comparison operator.
[in] | lhs | Left-hand side |
[in] | rhs | Right-hand side |