#include <QueueCB.hpp>
Public Member Functions | |
| TQueueCB (Int iSize=20, EArrayCopyMode eCopyMode=etDeepCopy) | |
| TQueueCB (const T &rEmptyItem, Int iSize, EArrayCopyMode eCopyMode) | |
| TQueueCB (const TQueueCB< T > &rQueue) | |
| virtual | ~TQueueCB () |
| bool | append (const T &tData) |
| void | assign (const TQueueCB< T > &rQueue) |
| EArrayCopyMode | getCopyMode () const |
| Int | getReaderIndex () const |
| Int | getWriterIndex () const |
| T & | remove (bool *pError=NULL) |
| virtual void MQUALIFIER | appendItem (const T &tData) |
| virtual void MQUALIFIER | copyToQueue (IQueue< T > &rQueue) const |
| virtual void MQUALIFIER | copyToList (IList< T > &rList) const |
| virtual T MQUALIFIER | removeItem () |
| virtual Int MQUALIFIER | getCount () const |
| virtual void MQUALIFIER | flush () |
| virtual bool MQUALIFIER | isEmpty () const |
| virtual T &MQUALIFIER | peekItem () |
| virtual const T &MQUALIFIER | peekItemConst () const |
| TQueueCB< T > & | operator= (const TQueueCB< T > &rQueue) |
| TQueueCB< T > & | operator= (const IQueue< T > &rQueue) |
Protected Member Functions | |
| T & | getItem (Int iIndex) |
| const T & | getItem (Int iIndex) const |
This class implements the abstract data type FIFO queue using a circular buffer as storage
| zeus::TQueueCB< T >::TQueueCB | ( | Int | iSize = 20, |
| EArrayCopyMode | eCopyMode = etDeepCopy |
||
| ) |
Creates a circular buffer queue.
| iSize | : Size of the buffer |
| eCopyMode | : Copy mode of the elements |
| zeus::TQueueCB< T >::TQueueCB | ( | const T & | rEmptyItem, |
| Int | iSize, | ||
| EArrayCopyMode | eCopyMode | ||
| ) |
Creates a circular buffer queue.
| rEmptyItem | : Empty item |
| iSize | : Size of the buffer |
| eCopyMode | : Copy mode of the elements |
| zeus::TQueueCB< T >::TQueueCB | ( | const TQueueCB< T > & | rQueue ) | [inline] |
Copy constructor
| rQueue | : Source queue |
| zeus::TQueueCB< T >::~TQueueCB | ( | ) | [inline, virtual] |
Destroys the queue
| bool zeus::TQueueCB< T >::append | ( | const T & | tData ) |
Appends an item to the buffer
| tData | : Item to add |
| true | : item added |
| false,: | queue is full |
| void MQUALIFIER zeus::TQueueCB< T >::appendItem | ( | const T & | tData ) | [inline, virtual] |
Implements zeus::IQueue< T >.
| void zeus::TQueueCB< T >::assign | ( | const TQueueCB< T > & | rQueue ) |
assigns the buffer of an other queue
| void MQUALIFIER zeus::TQueueCB< T >::copyToList | ( | IList< T > & | rList ) | const [inline, virtual] |
Implements zeus::IQueue< T >.
| void MQUALIFIER zeus::TQueueCB< T >::copyToQueue | ( | IQueue< T > & | rQueue ) | const [inline, virtual] |
Implements zeus::IQueue< T >.
| void MQUALIFIER zeus::TQueueCB< T >::flush | ( | ) | [inline, virtual] |
Implements zeus::IQueue< T >.
| EArrayCopyMode zeus::TQueueCB< T >::getCopyMode | ( | ) | const [inline] |
Returns the copy mode of the queue
| Int MQUALIFIER zeus::TQueueCB< T >::getCount | ( | ) | const [inline, virtual] |
Implements zeus::IQueue< T >.
| T & zeus::TQueueCB< T >::getItem | ( | Int | iIndex ) | [inline, protected] |
This returns the indexed value of the circular queue. Used internaly for coping queues.
| const T & zeus::TQueueCB< T >::getItem | ( | Int | iIndex ) | const [inline, protected] |
This returns the indexed value of the circular queue. Used internaly for coping queues.
| Int zeus::TQueueCB< T >::getReaderIndex | ( | ) | const [inline] |
returns the writer index
| Int zeus::TQueueCB< T >::getWriterIndex | ( | ) | const [inline] |
returns the writer index
| bool MQUALIFIER zeus::TQueueCB< T >::isEmpty | ( | ) | const [inline, virtual] |
Implements zeus::IQueue< T >.
| TQueueCB< T > & zeus::TQueueCB< T >::operator= | ( | const IQueue< T > & | rQueue ) | [inline] |
Copies a queue into an other queue
| rQueue,: | Queue to copy from |
| TQueueCB< T > & zeus::TQueueCB< T >::operator= | ( | const TQueueCB< T > & | rQueue ) | [inline] |
Copies a queue into an other queue
| rQueue,: | Queue to copy from |
| T &MQUALIFIER zeus::TQueueCB< T >::peekItem | ( | ) | [inline, virtual] |
Implements zeus::IQueue< T >.
| const T &MQUALIFIER zeus::TQueueCB< T >::peekItemConst | ( | ) | const [inline, virtual] |
Implements zeus::IQueue< T >.
| T & zeus::TQueueCB< T >::remove | ( | bool * | pError = NULL ) |
Appends an item to the buffer
| pError | : Optional error return |
| T MQUALIFIER zeus::TQueueCB< T >::removeItem | ( | ) | [inline, virtual] |
Implements zeus::IQueue< T >.