INET Framework for OMNeT++/OMNEST
inet::queueing::CPacketDropperFunction Class Reference

#include <PacketDropperFunction.h>

Inheritance diagram for inet::queueing::CPacketDropperFunction:
inet::queueing::IPacketDropperFunction

Public Member Functions

 CPacketDropperFunction (PacketDropperFunction packetDropperFunction)
 
virtual PacketselectPacket (IPacketCollection *collection) const override
 Returns a packet to be dropped from the collection. More...
 
- Public Member Functions inherited from inet::queueing::IPacketDropperFunction
virtual ~IPacketDropperFunction ()
 

Protected Attributes

PacketDropperFunction packetDropperFunction
 

Constructor & Destructor Documentation

◆ CPacketDropperFunction()

inet::queueing::CPacketDropperFunction::CPacketDropperFunction ( PacketDropperFunction  packetDropperFunction)
inline

Member Function Documentation

◆ selectPacket()

Packet * inet::queueing::CPacketDropperFunction::selectPacket ( IPacketCollection collection) const
overridevirtual

Returns a packet to be dropped from the collection.

Implements inet::queueing::IPacketDropperFunction.

16 {
17  return packetDropperFunction(collection);
18 }

Member Data Documentation

◆ packetDropperFunction

PacketDropperFunction inet::queueing::CPacketDropperFunction::packetDropperFunction
protected

Referenced by selectPacket().


The documentation for this class was generated from the following files:
inet::queueing::CPacketDropperFunction::packetDropperFunction
PacketDropperFunction packetDropperFunction
Definition: PacketDropperFunction.h:21