#include <RingBufferWithSum.h>
Public Member Functions | |
RingBufferWithSum () | |
Constructor. | |
void | init () |
initializes the RingBufferWithSum | |
void | add (int value) |
adds an entry to the buffer | |
int | getEntry (int i) |
returns an entry | |
int | getSum () |
int | getMinimum () |
int | operator[] (int i) |
returns an entry | |
int | operator[] (int i) const |
returns a constant entry. | |
int | getNumberOfEntries () const |
Private Attributes | |
int | current |
int | numberOfEntries |
int | buffer [n] |
int | sum |
Definition at line 20 of file RingBufferWithSum.h.
|
Constructor.
Definition at line 24 of file RingBufferWithSum.h. |
|
initializes the RingBufferWithSum
Definition at line 29 of file RingBufferWithSum.h. Referenced by RingBufferWithSum< 60 >::RingBufferWithSum(). |
|
adds an entry to the buffer
Definition at line 35 of file RingBufferWithSum.h. Referenced by ObstaclesModel::getAngleOfLargeGapInRange(), and ObstaclesModel::getAngleOfLargeGapInRange2(). |
|
returns an entry
Definition at line 50 of file RingBufferWithSum.h. Referenced by RingBufferWithSum< 60 >::add(), and RingBufferWithSum< 60 >::operator[](). |
|
Definition at line 58 of file RingBufferWithSum.h. Referenced by ObstaclesModel::getAngleOfLargeGapInRange(), and ObstaclesModel::getAngleOfLargeGapInRange2(). |
|
Definition at line 63 of file RingBufferWithSum.h. Referenced by ObstaclesModel::getAngleOfLargeGapInRange2(). |
|
returns an entry
Definition at line 78 of file RingBufferWithSum.h. |
|
returns a constant entry.
Definition at line 88 of file RingBufferWithSum.h. |
|
Definition at line 93 of file RingBufferWithSum.h. |
|
Definition at line 99 of file RingBufferWithSum.h. |
|
Definition at line 100 of file RingBufferWithSum.h. |
|
Definition at line 101 of file RingBufferWithSum.h. |
|
Definition at line 103 of file RingBufferWithSum.h. |