#include <RingBuffer.h>
Public Member Functions | |
void | resize (int capacity) |
RingBuffer (int capacity) | |
Constructor. | |
RingBuffer (const RingBuffer &other) | |
Copy constructor. | |
~RingBuffer () | |
bool | isEmpty () const |
bool | isFull () const |
int | getCapacity () const |
int | getSize () const |
void | clear () |
void | clear (const T &value) |
int | normalize (int mark) |
int | head () |
T & | at (int mark) |
void | push (const T &item) |
void | push (const T *items, int count) |
Items enter at the HEAD of the buffer and exit at the TAIL.
|
inline |
Destructor.