FastLED 3.9.15
Loading...
Searching...
No Matches
fl::circular_buffer< T, N > Class Template Reference

Detailed Description

template<typename T, fl::size N = 0>
class fl::circular_buffer< T, N >

Definition at line 165 of file circular_buffer.h.

#include <circular_buffer.h>

+ Inheritance diagram for fl::circular_buffer< T, N >:

Public Member Functions

 circular_buffer () FL_NOEXCEPT
 
 circular_buffer (circular_buffer &&other) FL_NOEXCEPT
 
 circular_buffer (const circular_buffer &other) FL_NOEXCEPT
 
 circular_buffer (fl::size capacity)
 
 circular_buffer (fl::size capacity, memory_resource *resource)
 
 circular_buffer (memory_resource *resource)
 
T & back ()
 
const T & back () const
 
fl::size capacity () const
 
void clear ()
 
template<typename... Args>
bool emplace_back (Args &&... args)
 
template<typename... Args>
bool emplace_front (Args &&... args)
 
bool empty () const
 
T & front ()
 
const T & front () const
 
bool full () const
 
memory_resourceget_memory_resource () const
 
bool operator!= (const circular_buffer &other) const
 Inequality comparison.
 
bool operator< (const circular_buffer &other) const
 Lexicographic comparison.
 
bool operator<= (const circular_buffer &other) const
 Less-than-or-equal comparison.
 
circular_bufferoperator= (circular_buffer &&other) FL_NOEXCEPT
 
circular_bufferoperator= (const circular_buffer &other) FL_NOEXCEPT
 
bool operator== (const circular_buffer &other) const
 Equality comparison.
 
bool operator> (const circular_buffer &other) const
 Greater-than comparison.
 
bool operator>= (const circular_buffer &other) const
 Greater-than-or-equal comparison.
 
T & operator[] (fl::size index)
 
const T & operator[] (fl::size index) const
 
bool pop (T &value)
 
bool pop_back (T *dst=nullptr)
 
bool pop_front (T *dst=nullptr)
 
void push (const T &value)
 
bool push_back (const T &value)
 
bool push_front (const T &value)
 
void resize (fl::size new_capacity)
 
fl::size size () const
 

Private Attributes

circular_buffer_core< T > mCore
 
vector_inlined< T,(N > 0 ? N :1)> mStorage
 

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