avr-classes
|
#include <ringbuffer.h>
Public Member Functions | |
bool | enqueue (BASETYPE item) |
bool | dequeue (BASETYPE *item) |
bool | isEmpty (void) |
bool | isFull (void) |
Template class that implements a ring buffer with elements of arbitrary type.
BASETYPE | Type of elements in ring buffer |
COUNT | Maximum count of elements that can be placed in ring buffer |
|
inline |
Gets an element from the ring buffer.
item | Pointer to buffer to receive the element. |
|
inline |
Adds an element into the ringer buffer.
item | Item to add. |
|
inline |
Returns if buffer is empty.
|
inline |
Returns if buffer is full.