Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

CmpPacket Class Reference

#include <netelem.h>

List of all members.

Public Member Functions

 CmpPacket (queuediscipline discipline=fifo)
bool operator() (Packet *&p1, Packet *&p2) const


Detailed Description

Implements the queueing discipline for the Server class.


Constructor & Destructor Documentation

CmpPacket::CmpPacket queuediscipline  discipline = fifo  )  [inline]
 

Constructor.

Parameters:
discipline queueing discipline. Defaults to fifo. Other values are lifo and sjf.


Member Function Documentation

bool CmpPacket::operator() Packet *&  p1,
Packet *&  p2
const [inline]
 

Comparator.

Parameters:
p1 pointer to the first object reference to compare
p2 pointer to the second object reference to compare
Returns:
true if p1 must be served before

false elsewhere


The documentation for this class was generated from the following file:
Generated on Fri Jan 19 15:35:17 2007 by  doxygen 1.4.2