UCommon
Public Member Functions
ucommon::objqueue Class Reference

Template for typesafe basic object queue container. More...

#include <linked.h>

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

Public Member Functions

void add (T *object)
 Add an object to the end of the object queue.
 objqueue ()
 Create a new object stack.
T * pop (void)
 Pop an object from the end of the object queue.
T * pull (void)
 Pull an object from the start of the object queue.
void push (T *object)
 Push an object to start of queue.

Detailed Description

Template for typesafe basic object queue container.

The object type, T, that is contained in the fifo must be derived from DLinkedObject.

Author:
David Sugar <dyfet@gnutelephony.org>

Member Function Documentation

void ucommon::objqueue::add ( T *  object) [inline]

Add an object to the end of the object queue.

Parameters:
objectof specified type to add.

Definition at line 1251 of file linked.h.

Here is the call graph for this function:

T* ucommon::objqueue::pop ( void  ) [inline]

Pop an object from the end of the object queue.

Returns:
object of specified type or NULL if empty.

Reimplemented from ucommon::ObjectQueue.

Definition at line 1265 of file linked.h.

Here is the call graph for this function:

T* ucommon::objqueue::pull ( void  ) [inline]

Pull an object from the start of the object queue.

Returns:
object of specified type or NULL if empty.

Reimplemented from ucommon::ObjectQueue.

Definition at line 1258 of file linked.h.

Here is the call graph for this function:

void ucommon::objqueue::push ( T *  object) [inline]

Push an object to start of queue.

Parameters:
objectof specified type to push.

Definition at line 1244 of file linked.h.

Here is the call graph for this function:


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