waterfall  0.2dev
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
RingBuffer< T > Class Template Reference

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

Detailed Description

template<class T>
class RingBuffer< T >

Todo:
Write documentation for class RingBuffer.

Items enter at the HEAD of the buffer and exit at the TAIL.

Constructor & Destructor Documentation

template<class T>
RingBuffer< T >::~RingBuffer ( )
inline

Destructor.


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