CircularArray< T > Class Template Reference
[Collections]

An array that wraps back to the first element when elements are written past the end. More...

#include <CircularArray.h>

Inheritance diagram for CircularArray< T >:
IMemoryValidate

List of all members.

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
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

Detailed Description

template<typename T>
class CircularArray< T >

An array that wraps back to the first element when elements are written past the end.

Definition at line 45 of file CircularArray.h.


The documentation for this class was generated from the following file: