Class daisy::FIFO¶
template <typename T, size_t capacity>
#include <FIFO.h>
Inherits the following classes: daisy::FIFOBase
Public Functions¶
Type | Name |
---|---|
FIFO () |
|
FIFO (std::initializer_list< T > valuesToAdd) |
|
FIFO (const FIFO< T, otherCapacity > & other) |
|
FIFO< T, capacity > & | operator= (const FIFO< T, otherCapacity > & other) |
Public Functions inherited from daisy::FIFOBase¶
See daisy::FIFOBase
Type | Name |
---|---|
T & | Back () |
const T & | Back () const |
void | Clear () |
bool | Contains (const T & element) |
size_t | CountEqualTo (const T & element) |
T & | Front () |
const T & | Front () const |
size_t | GetCapacity () const |
size_t | GetNumElements () const |
bool | Insert (size_t idx, const T & element) |
bool | IsEmpty () const |
bool | IsFull () const |
T | PopFront () |
bool | PushBack (const T & elementToAdd) |
int | PushBack (std::initializer_list< T > valuesToAdd) |
bool | Remove (size_t idx) |
size_t | RemoveAllEqualTo (const T & element) |
FIFOBase< T > & | operator= (const FIFOBase< T > & other) |
T & | operator[] (size_t idx) |
const T & | operator[] (size_t idx) const |
~FIFOBase () |
Protected Functions inherited from daisy::FIFOBase¶
See daisy::FIFOBase
Type | Name |
---|---|
FIFOBase (T * buffer, size_t bufferSize) |
|
FIFOBase (T * buffer, size_t bufferSize, std::initializer_list< T > valuesToAdd) |
Detailed Description¶
A simple FIFO ring buffer with a fixed size.
Public Functions Documentation¶
function FIFO [⅓]¶
Creates an empty FIFO
function FIFO [⅔]¶
Creates a FIFO and adds a list of values
function FIFO [3/3]¶
template<size_t otherCapacity>
inline daisy::FIFO::FIFO (
const FIFO < T , otherCapacity > & other
)
Creates a FIFO and copies all values from another FIFO
function operator=¶
template<size_t otherCapacity>
inline FIFO < T , capacity > & daisy::FIFO::operator= (
const FIFO < T , otherCapacity > & other
)
Copies all values from another FIFO
The documentation for this class was generated from the following file external-docs/libDaisy/src/util/FIFO.h