21 #ifndef __RINGBUFFER_H
22 #define __RINGBUFFER_H
54 if(index < 0) index=0;
58 const T&
get(
int index)
const {
60 if(index < 0) index=0;
RingBuffer()
Definition: ringbuffer.h:30
void init(int size, const T &t)
sets size of buffer and initializes buffer elements.
Definition: ringbuffer.h:40
std::vector< T > buffer
Definition: ringbuffer.h:74
RingBuffer(int size)
Definition: ringbuffer.h:34
matrix::Matrix t(const std::vector< matrix::Matrix > &data, int time)
Definition: datafunc.h:102
int buffersize
Definition: ringbuffer.h:75
T & operator[](int index)
see get()
Definition: ringbuffer.h:65
int getBufferSize() const
Definition: ringbuffer.h:45
const int T
integer constant for use with exp function and (^) operator to transpose the matrix ...
Definition: matrix.cpp:21
Definition: ringbuffer.h:28