ucommon

objqueue< T > Class Template Reference

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

#include <linked.h>

Inheritance diagram for objqueue< T >:
Collaboration diagram for objqueue< T >:

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 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 1224 of file linked.h.


Member Function Documentation

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

Add an object to the end of the object queue.

Parameters:
objectof specified type to add.

Definition at line 1243 of file linked.h.

template<class T>
T* 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 ObjectQueue.

Definition at line 1257 of file linked.h.

template<class T>
T* 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 ObjectQueue.

Definition at line 1250 of file linked.h.

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

Push an object to start of queue.

Parameters:
objectof specified type to push.

Definition at line 1236 of file linked.h.


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