LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CircularBuffer< T > Struct Template Reference

#include <CircularBuffer.h>

Collaboration diagram for CircularBuffer< T >:
[legend]

Classes

struct  Sample
 

Public Member Functions

 CircularBuffer ()
 
 CircularBuffer (int BufferSize)
 
 ~CircularBuffer ()
 
void Reset (int BufferSize=0)
 
void AddSample (const T &Item, long long int Time)
 
const T & LastSample ()
 

Protected Attributes

SampleBuffer
 
intTimeStamp
 
int BufferSize
 
int SampleCount
 
int CurrentIndex
 

Constructor & Destructor Documentation

template<typename T>
CircularBuffer< T >::CircularBuffer ( )
inline
template<typename T>
CircularBuffer< T >::CircularBuffer ( int  BufferSize)
inline
template<typename T>
CircularBuffer< T >::~CircularBuffer ( )
inline

Member Function Documentation

template<typename T>
void CircularBuffer< T >::AddSample ( const T &  Item,
long long int  Time 
)
inline
template<typename T>
const T& CircularBuffer< T >::LastSample ( )
inline
template<typename T>
void CircularBuffer< T >::Reset ( int  BufferSize = 0)
inline

Member Data Documentation

template<typename T>
Sample* CircularBuffer< T >::Buffer
protected
template<typename T>
int CircularBuffer< T >::BufferSize
protected
template<typename T>
int CircularBuffer< T >::CurrentIndex
protected
template<typename T>
int CircularBuffer< T >::SampleCount
protected
template<typename T>
int* CircularBuffer< T >::TimeStamp
protected

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