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 12 of file circular_buffer.h.

#include <circular_buffer.h>

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

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

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