An array that wraps back to the first element when elements are written past the end. More...
#include <CircularArray.h>
Public Member Functions | |
CircularArray (int size) | |
CircularArray (const CircularArray< T > &ar) | |
void | Write (T data) |
void | Write (T *data, int start, int len) |
void | Read (T *data) |
void | Read (T *data, int start, int len) |
int | Count () const |
T | Peek (int offset) const |
int | LocateElement (T item) const |
CircularArray< T > & | operator= (const CircularArray< T > &ar) |
virtual void | ValidateMem () const |
virtual void | CheckMem () const |
Protected Attributes | |
int | m_size |
T * | m_array |
int | m_writepos |
int | m_readpos |
An array that wraps back to the first element when elements are written past the end.
Definition at line 45 of file CircularArray.h.