A custom iterator for circular buffers. More...
#include <circularBuffer.hpp>
Public Member Functions | |
| circularIterator (const TYPE *buffer, int index) noexcept | |
| Constructor. | |
| circularIterator | operator++ () noexcept |
| Move to the next spot in the buffer. | |
| bool | operator!= (const circularIterator &other) const noexcept |
| Inequality operator. | |
| const TYPE & | operator* () const noexcept |
| Dereference operator. | |
A custom iterator for circular buffers.
This iterator allows C++'s range based for loop syntax.
|
inlinenoexcept |
Constructor.
| buffer | The raw buffer data. |
| index | The current index in the buffer. |
|
inlinenoexcept |
Inequality operator.
| other | The other iterator to compare against. |
|
inlinenoexcept |
Dereference operator.
|
inlinenoexcept |
Move to the next spot in the buffer.