Vital
|
A forward and backward iterator for iterating over the elements in the CircularQueue. More...
#include <circular_queue.h>
Public Member Functions | |
iterator (T *pointer, T *front, T *end) | |
Constructs an iterator. | |
force_inline void | increment () |
Moves the iterator to the next element. | |
force_inline void | decrement () |
Moves the iterator to the previous element. | |
force_inline iterator | operator++ () |
force_inline const iterator | operator++ (int i) |
force_inline iterator | operator-- () |
force_inline const iterator | operator-- (int i) |
force_inline T & | operator* () |
force_inline T * | operator-> () |
force_inline T * | get () |
force_inline bool | operator== (const iterator &rhs) |
force_inline bool | operator!= (const iterator &rhs) |
Protected Attributes | |
T * | pointer_ |
T * | front_ |
T * | end_ |
A forward and backward iterator for iterating over the elements in the CircularQueue.
The iterator supports increment and decrement operations and wraps around the circular buffer.
|
inline |
Constructs an iterator.
pointer | The current pointer to an element in the queue. |
front | The pointer to the start of the internal buffer. |
end | The pointer to the end of the internal buffer. |
|
inline |
Moves the iterator to the previous element.
|
inline |
|
inline |
Moves the iterator to the next element.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |