FastLED 3.9.15
|
Definition at line 13 of file circular_buffer.h.
#include <circular_buffer.h>
Public Member Functions | |
CircularBuffer (const CircularBuffer &)=delete | |
CircularBuffer (fl::size capacity) | |
T & | back () |
const T & | back () const |
fl::size | capacity () const |
void | clear () |
bool | empty () const |
T & | front () |
const T & | front () const |
bool | full () const |
CircularBuffer & | operator= (const CircularBuffer &)=delete |
T & | operator[] (fl::size index) |
const T & | operator[] (fl::size index) const |
bool | pop_back (T *dst=nullptr) |
bool | pop_front (T *dst=nullptr) |
bool | push_back (const T &value) |
bool | push_front (const T &value) |
fl::size | size () const |
Private Member Functions | |
fl::size | decrement (fl::size index) const |
fl::size | increment (fl::size index) const |
Private Attributes | |
fl::scoped_array< T > | mBuffer |
fl::size | mCapacity |
fl::size | mHead |
fl::size | mTail |