#include <RingBuffer.h>
Collaboration diagram for RingBuffer< V, n >:

Public Member Functions | |
| RingBuffer () | |
| Constructor. | |
| void | init () |
| initializes the Ringbuffer | |
| void | add (const V &v) |
| adds an entry to the buffer | |
| V & | getEntry (int i) |
| returns an entry | |
| void | updateEntry (const V &v, int i) |
| returns an entry | |
| V & | operator[] (int i) |
| returns an entry | |
| const V & | operator[] (int i) const |
| returns a constant entry. | |
| int | getNumberOfEntries () const |
Private Attributes | |
| int | current |
| int | numberOfEntries |
| V | buffer [n] |
Definition at line 17 of file RingBuffer.h.
|
|||||||||
|
Constructor.
Definition at line 21 of file RingBuffer.h. |
|
|||||||||
|
initializes the Ringbuffer
Definition at line 26 of file RingBuffer.h. Referenced by RingBuffer< SensorData, numOfFramesPerIndividual >::RingBuffer(), and GT2004ImageProcessor::scan(). |
|
||||||||||
|
adds an entry to the buffer
Definition at line 32 of file RingBuffer.h. Referenced by GT2004ImageProcessor::scan(). |
|
||||||||||
|
returns an entry
Definition at line 45 of file RingBuffer.h. Referenced by RingBuffer< SensorData, numOfFramesPerIndividual >::operator[](). |
|
||||||||||||||||
|
returns an entry
Definition at line 58 of file RingBuffer.h. |
|
||||||||||
|
returns an entry
Definition at line 71 of file RingBuffer.h. |
|
||||||||||
|
returns a constant entry.
Definition at line 81 of file RingBuffer.h. |
|
|||||||||
|
Definition at line 86 of file RingBuffer.h. Referenced by GT2004ImageProcessor::scan(). |
|
|||||
|
Definition at line 92 of file RingBuffer.h. |
|
|||||
|
Definition at line 93 of file RingBuffer.h. |
|
|||||
|
Definition at line 94 of file RingBuffer.h. |
1.3.6