#include <queue.h>
Inheritance diagram for Queue:

Public Methods | |
| Queue (void) | |
| A constructor. More... | |
| virtual | ~Queue (void) |
| A destructor. More... | |
| virtual T_ * | first (void) |
| Get the data from the first item in the queue. More... | |
| virtual T_ * | last (void) |
| Get the data from the last item in the queue. More... | |
| virtual void | enqueue (T_ *item) |
| Enqueue data. More... | |
| virtual T_ * | dequeue (void) |
| Dequeue data. More... | |
| virtual void | clear (void) |
| Empty the queue. More... | |
Protected Methods | |
| virtual void | initQueue (void) |
| Initialize the queue. | |
Protected Attributes | |
| QueueLinkedList< T_ > * | firstNode_ |
| Linked list of items of the queue. | |
| QueueLinkedList< T_ > * | lastNode_ |
| Pointer to the last item of the queue. | |
Definition at line 50 of file queue.h.
|
||||||||||
|
A constructor.
Calls initQueue() |
|
||||||||||
|
A destructor.
Calls clear() |
|
||||||||||
|
Empty the queue.
If auto deletion is enabled, all data items will be removed from memory.
Implements Collection. Definition at line 171 of file queue.h. Referenced by Queue< DataQueueItem >::~Queue. |
|
||||||||||
|
Dequeue data.
|
|
||||||||||
|
Enqueue data.
|
|
||||||||||
|
Get the data from the first item in the queue.
The item isn't tremoved.
|
|
||||||||||
|
Get the data from the last item in the queue.
The item isn't tremoved.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002