FastLED 3.9.15
Loading...
Searching...
No Matches
fl::CircularBuffer< T > Class Template Reference

Detailed Description

template<typename T>
class fl::CircularBuffer< T >

Definition at line 13 of file circular_buffer.h.

#include <circular_buffer.h>

+ Inheritance diagram for fl::CircularBuffer< T >:

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
 
CircularBufferoperator= (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
 

The documentation for this class was generated from the following file: