Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

Queue< PacketType > Class Template Reference

A superclass for the queues containing most of the implementation. More...

#include <queue.h>

Inheritance diagram for Queue< PacketType >:

PacketChainStep< PacketType > List of all members.

Public Member Functions

 Queue ()
 ~Queue ()
unsigned int size ()
void insert (PacketType *p)
PacketType * next ()
PacketType * peek ()
void pack (PacketType *packet)
 This method will just insert the packet into the queue.
void unpack (PacketType *packet)
 This method will just insert the packet into the queue.
template<class Comp>
void removeWithComparer (const Comp &comp)
 This method will remove all elements that test true with the given comparer.
void clear ()

Protected Types

typedef std::set< QueueElement<
PacketType >, QueueComparer<
PacketType > > 
QueueSet
typedef QueueSet::iterator QueueSetIt

Protected Attributes

QueueSet queue
mutex m_mutex

Detailed Description

template<class PacketType>
class Queue< PacketType >

A superclass for the queues containing most of the implementation.

Author:
Lars Langer and Emanuel Greisen

Definition at line 115 of file queue.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 12:24:53 2006 for Ganef by  doxygen 1.4.4