arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
QueueFromVector< T > Class Template Reference

FIFO Queue which is based on a Vector. More...

#include <QueueFromVector.h>

Public Member Functions

 QueueFromVector (size_t size, T empty)
 
size_t capacity ()
 
bool clear ()
 
bool dequeue (T &data)
 
bool empty ()
 
bool enqueue (T &data)
 
bool is_full ()
 
bool peek (T &data)
 
bool resize (size_t size)
 
void setAllocator (Allocator &allocator)
 
size_t size ()
 

Protected Attributes

int32_t _end_pos = 0
 
int empty_pos = 0
 
null_value
 
Vector< T > vector
 

Detailed Description

template<class T>
class audio_tools::QueueFromVector< T >

FIFO Queue which is based on a Vector.

Author
Phil Schatzmann
Template Parameters
T

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