ObjectQueue< T, rawSize > Class Template Reference

FIFO for objects. More...

#include <ObjectQueue.h>

Inheritance diagram for ObjectQueue< T, rawSize >:
[legend]
Collaboration diagram for ObjectQueue< T, rawSize >:
[legend]

Public Member Functions

virtual ~ObjectQueue ()
 
T * peek () const
 
T * dequeue ()
 
- Public Member Functions inherited from FIFO< T *, rawSize >
 FIFO ()
 
T * dequeue ()
 
bool enqueue (T * element)
 
T * peek () const
 
void flush ()
 
unsigned int count () const override
 
bool full () const
 
const T * & operator[] (unsigned int index) const override
 
T * & operator[] (unsigned int index) override
 
- Public Member Functions inherited from Countable< T * >
virtual ~Countable ()
 
const T * & at (unsigned int i) const
 

Additional Inherited Members

- Public Attributes inherited from FIFO< T *, rawSize >
const int size
 
- Protected Attributes inherited from FIFO< T *, rawSize >
volatile int numberOfElements
 
int nextIn
 
int nextOut
 
T * raw [rawSize]
 

Detailed Description

template<typename T, int rawSize>
class ObjectQueue< T, rawSize >

FIFO for objects.

Note
Objects are not owned so construction/destruction must be managed elsewhere

Constructor & Destructor Documentation

◆ ~ObjectQueue()

template<typename T, int rawSize>
virtual ObjectQueue< T, rawSize >::~ObjectQueue ( )
inlinevirtual

Member Function Documentation

◆ dequeue()

template<typename T, int rawSize>
T* ObjectQueue< T, rawSize >::dequeue ( )
inline

◆ peek()

template<typename T, int rawSize>
T* ObjectQueue< T, rawSize >::peek ( ) const
inline

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