FastLED 3.9.15
|
Definition at line 12 of file circular_buffer.h.
#include <circular_buffer.h>
Public Member Functions | |
CircularBuffer (const CircularBuffer &)=delete | |
CircularBuffer (size_t capacity) | |
T & | back () |
const T & | back () const |
size_t | capacity () const |
void | clear () |
bool | empty () const |
T & | front () |
const T & | front () const |
bool | full () const |
CircularBuffer & | operator= (const CircularBuffer &)=delete |
T & | operator[] (size_t index) |
const T & | operator[] (size_t 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) |
size_t | size () const |
Private Member Functions | |
size_t | decrement (size_t index) const |
size_t | increment (size_t index) const |
Private Attributes | |
fl::scoped_array< T > | mBuffer |
size_t | mCapacity |
size_t | mHead |
size_t | mTail |