|
VLCB
|
#include <CircularBuffer.h>
Public Member Functions | |
| CircularBuffer () | |
| ~CircularBuffer () | |
| bool | available () const |
| if buffer has one or more stored items | |
| E * | peek () |
| peek at the next item in the buffer without removing it | |
| const E & | pop () |
| retrieve the next item from the buffer, requires that available() is checked first. | |
| void | put (const E &entry) |
| void | clear () |
| clear all items | |
| uint8_t | bufUse () const |
| recalculate number of items in the buffer | |
| unsigned int | getNumberOfPuts () const |
| unsigned int | getNumberOfGets () const |
| unsigned int | getOverflows () const |
| unsigned int | getHighWaterMark () const |
|
explicit |
| VLCB::CircularBuffer< E, bufferCapacity >::~CircularBuffer | ( | ) |
| bool VLCB::CircularBuffer< E, bufferCapacity >::available | ( | ) | const |
if buffer has one or more stored items
| E * VLCB::CircularBuffer< E, bufferCapacity >::peek | ( | ) |
peek at the next item in the buffer without removing it
| const E & VLCB::CircularBuffer< E, bufferCapacity >::pop | ( | ) |
retrieve the next item from the buffer, requires that available() is checked first.
| void VLCB::CircularBuffer< E, bufferCapacity >::put | ( | const E & | entry | ) |
store an item to the buffer - overwrite the oldest item if buffer is full never called from an interrupt context so we don't need to worry about interrupts
| void VLCB::CircularBuffer< E, bufferCapacity >::clear | ( | ) |
clear all items
| uint8_t VLCB::CircularBuffer< E, bufferCapacity >::bufUse | ( | ) | const |
recalculate number of items in the buffer
|
inline |
|
inline |
|
inline |
|
inline |