Mixxx

CircularBuffer< T > Class Template Reference

#include <circularbuffer.h>

Collaboration diagram for CircularBuffer< T >:

List of all members.

Public Member Functions

 CircularBuffer (unsigned int iLength)
virtual ~CircularBuffer ()
bool isFull () const
bool isEmpty () const
void clear ()
unsigned int length () const
unsigned int write (const T *pBuffer, const unsigned int numItems)
unsigned int read (T *pBuffer, const unsigned int itemsToRead)
unsigned int skip (const unsigned int itemsToRead)

Detailed Description

template<typename T>
class CircularBuffer< T >

Definition at line 14 of file circularbuffer.h.


Constructor & Destructor Documentation

template<typename T>
CircularBuffer< T >::CircularBuffer ( unsigned int  iLength) [inline]

Definition at line 16 of file circularbuffer.h.

template<typename T>
virtual CircularBuffer< T >::~CircularBuffer ( ) [inline, virtual]

Definition at line 25 of file circularbuffer.h.


Member Function Documentation

template<typename T>
void CircularBuffer< T >::clear ( ) [inline]

Definition at line 40 of file circularbuffer.h.

Here is the caller graph for this function:

template<typename T>
bool CircularBuffer< T >::isEmpty ( ) const [inline]

Definition at line 36 of file circularbuffer.h.

Here is the caller graph for this function:

template<typename T>
bool CircularBuffer< T >::isFull ( ) const [inline]

Definition at line 31 of file circularbuffer.h.

Here is the caller graph for this function:

template<typename T>
unsigned int CircularBuffer< T >::length ( ) const [inline]

Definition at line 46 of file circularbuffer.h.

template<typename T>
unsigned int CircularBuffer< T >::read ( T *  pBuffer,
const unsigned int  itemsToRead 
) [inline]

Definition at line 67 of file circularbuffer.h.

Here is the caller graph for this function:

template<typename T>
unsigned int CircularBuffer< T >::skip ( const unsigned int  itemsToRead) [inline]

Definition at line 79 of file circularbuffer.h.

Here is the caller graph for this function:

template<typename T>
unsigned int CircularBuffer< T >::write ( const T *  pBuffer,
const unsigned int  numItems 
) [inline]

Definition at line 53 of file circularbuffer.h.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines