Arduino DLNA Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
tiny_dlna::Queue< T, Alloc > Class Template Reference

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

#include <Queue.h>

Public Member Functions

 Queue ()=default
 
 Queue (const Alloc &alloc)
 
bool enqueue (T &data)
 
bool enqueue (T &&data)
 
bool peek (T &data)
 
bool dequeue (T &data)
 
size_t size ()
 
bool clear ()
 
bool empty ()
 

Protected Attributes

List< T, Alloc > l_instance
 

Detailed Description

template<class T, class Alloc = DLNA_ALLOCATOR<T>>
class tiny_dlna::Queue< T, Alloc >

FIFO Queue which is based on a List.

Author
Phil Schatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ Queue() [1/2]

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
tiny_dlna::Queue< T, Alloc >::Queue ( )
default

◆ Queue() [2/2]

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
tiny_dlna::Queue< T, Alloc >::Queue ( const Alloc &  alloc)
inlineexplicit

Member Function Documentation

◆ clear()

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::clear ( )
inline

◆ dequeue()

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::dequeue ( T &  data)
inline

◆ empty()

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::empty ( )
inline

◆ enqueue() [1/2]

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::enqueue ( T &&  data)
inline

◆ enqueue() [2/2]

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::enqueue ( T &  data)
inline

◆ peek()

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
bool tiny_dlna::Queue< T, Alloc >::peek ( T &  data)
inline

◆ size()

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
size_t tiny_dlna::Queue< T, Alloc >::size ( )
inline

Member Data Documentation

◆ l_instance

template<class T , class Alloc = DLNA_ALLOCATOR<T>>
List<T, Alloc> tiny_dlna::Queue< T, Alloc >::l_instance
protected

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