Queue Class Template Reference
#include <Queue.h>
Inheritance diagram for Queue:
Public Member Functions | |
virtual | ~Queue () |
Destroy a Queue. | |
virtual void | add (const T &item)=0 |
virtual bool | add (const T &item, unsigned long timeout)=0 |
virtual T | next ()=0 |
virtual T | next (unsigned long timeout)=0 |
virtual void | cancel ()=0 |
virtual size_t | size ()=0 |
virtual size_t | size (unsigned long timeout)=0 |
virtual bool | empty () |
virtual bool | empty (unsigned long timeout) |
Detailed Description
template<typename T>
class ZThread::Queue< T >
- Author:
- Eric Crahen <http://www.code-foo.com>
- Date:
- <2003-07-16T11:32:42-0400>
- Version:
- 2.3.0
Member Function Documentation
|
Add an object to this Queue.
Implemented in BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Add an object to this Queue.
Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Canceling a Queue disables it, disallowing further additions. Values already present in the Queue can still be retrieved and are still available through the next() methods. Canceling a Queue more than once has no effect.
Implements Cancelable. Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Test whether any values are available in this Queue.
Reimplemented in BoundedQueue, and MonitoredQueue. |
|
Test whether any values are available in this Queue.
Reimplemented in BoundedQueue, and MonitoredQueue. |
|
Retrieve and remove a value from this Queue.
Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Retrieve and remove a value from this Queue.
Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Count the values present in this Queue.
Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
|
Count the values present in this Queue.
Implemented in BlockingQueue, BoundedQueue, LockedQueue, and MonitoredQueue. |
The documentation for this class was generated from the following file:
- Queue.h