Skip to content

daisy::FIFO

More...

#include <FIFO.h>

Inherits from daisy::FIFOBase< T >

Public Functions

Name
FIFO()
FIFO(std::initializer_list< T > valuesToAdd)
template <size_t otherCapacity>
FIFO(const FIFO< T, otherCapacity > & other)
template <size_t otherCapacity>
FIFO< T, capacity > &
operator=(const FIFO< T, otherCapacity > & other)

Additional inherited members

Public Functions inherited from daisy::FIFOBase< T >

Name
~FIFOBase()
void Clear()
bool PushBack(const T & elementToAdd)
int PushBack(std::initializer_list< T > valuesToAdd)
T & Back()
const T & Back() const
T PopFront()
T & Front()
const T & Front() const
bool Contains(const T & element)
size_t CountEqualTo(const T & element)
bool IsEmpty() const
bool IsFull() const
size_t GetNumElements() const
bool Insert(size_t idx, const T & element)
bool Remove(size_t idx)
size_t RemoveAllEqualTo(const T & element)
T & operator[](size_t idx)
const T & operator[](size_t idx) const
size_t GetCapacity() const

Protected Functions inherited from daisy::FIFOBase< T >

Name
FIFOBase(T * buffer, size_t bufferSize)
FIFOBase(T * buffer, size_t bufferSize, std::initializer_list< T > valuesToAdd)

Detailed Description

template <typename T ,
size_t capacity>
class daisy::FIFO;

A simple FIFO ring buffer with a fixed size.

Public Functions Documentation

function FIFO

inline FIFO()

Creates an empty FIFO


function FIFO

inline explicit FIFO(
    std::initializer_list< T > valuesToAdd
)

Creates a FIFO and adds a list of values


function FIFO

template <size_t otherCapacity>
inline 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 > & operator=(
    const FIFO< T, otherCapacity > & other
)

Copies all values from another FIFO

---

Updated on 2024-01-03 at 19:41:00 +0000