UCommon
Public Member Functions
ucc::objfifo< T > Class Template Reference

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

#include <linked.h>

Inheritance diagram for ucc::objfifo< T >:
Inheritance graph
[legend]
Collaboration diagram for ucc::objfifo< T >:
Collaboration graph
[legend]

Public Member Functions

void add (T *object)
 Add an object onto the object fifo.
 objfifo ()
 Create a new object stack.
T * pop (void)
 Pull (pop) an object from the object stack.
T * pull (void)
 Pull an object from the object stack.
void push (T *object)
 Push an object onto the object fifo.

Detailed Description

template<class T>
class ucc::objfifo< T >

Template for typesafe basic object fifo container.

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

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 1181 of file linked.h.


Member Function Documentation

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

Add an object onto the object fifo.

Parameters:
objectof specified type to push.

Definition at line 1200 of file linked.h.

Here is the call graph for this function:

template<class T >
T* ucc::objfifo< T >::pop ( void  ) [inline]

Pull (pop) an object from the object stack.

Returns:
object of specified type or NULL if empty.

Definition at line 1214 of file linked.h.

template<class T >
T* ucc::objfifo< T >::pull ( void  ) [inline]

Pull an object from the object stack.

Returns:
object of specified type or NULL if empty.

Definition at line 1207 of file linked.h.

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

Push an object onto the object fifo.

Parameters:
objectof specified type to push.

Definition at line 1193 of file linked.h.

Here is the call graph for this function:


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