arduino-audio-tools
Loading...
Searching...
No Matches
QueueFromVector< T > Class Template Reference

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

#include <CodecOpusOgg.h>

Public Member Functions

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

Protected Attributes

int32_t _end_pos = 0
T null_value
Vector< T > vector

Detailed Description

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

FIFO Queue which is based on a Vector.

Author
Phil Schatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ QueueFromVector() [1/2]

template<class T>
QueueFromVector ( size_t size,
T empty )
inline

◆ QueueFromVector() [2/2]

template<class T>
QueueFromVector ( size_t size,
T empty )
inline

Member Function Documentation

◆ capacity() [1/2]

template<class T>
size_t capacity ( )
inline

◆ capacity() [2/2]

template<class T>
size_t capacity ( )
inline

◆ clear() [1/2]

template<class T>
bool clear ( )
inline

◆ clear() [2/2]

template<class T>
bool clear ( )
inline

◆ dequeue() [1/2]

template<class T>
bool dequeue ( T & data)
inline

◆ dequeue() [2/2]

template<class T>
bool dequeue ( T & data)
inline

◆ empty() [1/2]

template<class T>
bool empty ( )
inline

◆ empty() [2/2]

template<class T>
bool empty ( )
inline

◆ enqueue() [1/2]

template<class T>
bool enqueue ( T & data)
inline

◆ enqueue() [2/2]

template<class T>
bool enqueue ( T & data)
inline

◆ is_full() [1/2]

template<class T>
bool is_full ( )
inline

◆ is_full() [2/2]

template<class T>
bool is_full ( )
inline

◆ peek() [1/2]

template<class T>
bool peek ( T & data)
inline

◆ peek() [2/2]

template<class T>
bool peek ( T & data)
inline

◆ resize() [1/2]

template<class T>
bool resize ( size_t size)
inline

Grows or shrinks the queue's capacity, keeping any queued elements. If shrinking below the number of currently queued elements, the newest ones (that no longer fit) are dropped.

◆ resize() [2/2]

template<class T>
bool resize ( size_t size)
inline

Grows or shrinks the queue's capacity, keeping any queued elements. If shrinking below the number of currently queued elements, the newest ones (that no longer fit) are dropped.

◆ setAllocator() [1/2]

template<class T>
void setAllocator ( Allocator & allocator)
inline

◆ setAllocator() [2/2]

template<class T>
void setAllocator ( Allocator & allocator)
inline

◆ size() [1/2]

template<class T>
size_t size ( )
inline

◆ size() [2/2]

template<class T>
size_t size ( )
inline

◆ toVector() [1/2]

template<class T>
Vector< T > & toVector ( )
inline

◆ toVector() [2/2]

template<class T>
Vector< T > & toVector ( )
inline

Member Data Documentation

◆ _end_pos

template<class T>
int32_t _end_pos = 0
protected

◆ null_value

template<class T>
T null_value
protected

◆ vector

template<class T>
Vector< T > vector
protected

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