ucommon
Public Member Functions
ucommon::objqueue< T > Class Template Reference

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

#include <linked.h>

Inheritance diagram for ucommon::objqueue< T >:
Inheritance graph
[legend]
Collaboration diagram for ucommon::objqueue< T >:
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<class T>
class ucommon::objqueue< T >

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>
Examples:
linked.cpp.

Definition at line 1244 of file linked.h.


Member Function Documentation

template<class T >
void ucommon::objqueue< T >::add ( T *  object) [inline]

Add an object to the end of the object queue.

Parameters:
objectof specified type to add.
Examples:
linked.cpp.

Definition at line 1263 of file linked.h.

template<class T >
T* ucommon::objqueue< T >::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 1277 of file linked.h.

template<class T >
T* ucommon::objqueue< T >::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 1270 of file linked.h.

template<class T >
void ucommon::objqueue< T >::push ( T *  object) [inline]

Push an object to start of queue.

Parameters:
objectof specified type to push.

Definition at line 1256 of file linked.h.


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