ucommon::ObjectQueue Class Reference

A queue of double linked object. More...

#include <linked.h>

Inheritance diagram for ucommon::ObjectQueue:
Inheritance graph
[legend]
Collaboration diagram for ucommon::ObjectQueue:
Collaboration graph
[legend]

Public Member Functions

void add (DLinkedObject *object)
 Add an object to the end of the queue.
 ObjectQueue ()
 Create an empty object queue.
DLinkedObjectpop (void)
 Pop an object from the end of the queue.
DLinkedObjectpull (void)
 Pull an object from the front of the queue.
void push (DLinkedObject *object)
 Push an object to the front of the queue.

Detailed Description

A queue of double linked object.

This uses the linkedlist class to form a basic queue of objects.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 882 of file linked.h.


Member Function Documentation

void ucommon::ObjectQueue::add ( DLinkedObject object  ) 

Add an object to the end of the queue.

Parameters:
object to add.
DLinkedObject* ucommon::ObjectQueue::pop ( void   ) 

Pop an object from the end of the queue.

Returns:
object popped or NULL if empty.

Reimplemented in ucommon::objqueue< T >.

DLinkedObject* ucommon::ObjectQueue::pull ( void   ) 

Pull an object from the front of the queue.

Returns:
object pulled or NULL if empty.

Reimplemented in ucommon::objqueue< T >.

void ucommon::ObjectQueue::push ( DLinkedObject object  ) 

Push an object to the front of the queue.

Parameters:
object to push.

The documentation for this class was generated from the following file:
Generated on Thu Jul 14 16:39:48 2011 for ucommon by  doxygen 1.6.3