INET Framework for OMNeT++/OMNEST
inet::queueing::IPacketBuffer Class Referenceabstract

This class defines the interface for packet buffers. More...

#include <IPacketBuffer.h>

Inheritance diagram for inet::queueing::IPacketBuffer:
inet::queueing::IPacketCollection inet::queueing::PacketBuffer

Classes

class  ICallback
 

Public Member Functions

virtual ~IPacketBuffer ()
 
virtual void addPacket (Packet *packet)=0
 Adds the packet to the buffer. More...
 
virtual void removePacket (Packet *packet)=0
 Removes the packet from the buffer. More...
 
- Public Member Functions inherited from inet::queueing::IPacketCollection
virtual int getMaxNumPackets () const =0
 Returns maximum allowed number of packets in the collection. More...
 
virtual int getNumPackets () const =0
 Returns the number of available packets in the collection in the range [0, inf). More...
 
virtual b getMaxTotalLength () const =0
 Returns maximum allowed total length of all packets in the collection. More...
 
virtual b getTotalLength () const =0
 Returns the total length of all packets in the collection in the range [0, inf). More...
 
virtual PacketgetPacket (int index) const =0
 Returns the packet at the given index. More...
 
virtual bool isEmpty () const =0
 Returns true if there are no packets available in the collection. More...
 
virtual void removeAllPackets ()=0
 Removes all packets from the collection. More...
 

Detailed Description

This class defines the interface for packet buffers.

Constructor & Destructor Documentation

◆ ~IPacketBuffer()

virtual inet::queueing::IPacketBuffer::~IPacketBuffer ( )
inlinevirtual
33 {}

Member Function Documentation

◆ addPacket()

virtual void inet::queueing::IPacketBuffer::addPacket ( Packet packet)
pure virtual

Adds the packet to the buffer.

Implemented in inet::queueing::PacketBuffer.

Referenced by inet::queueing::PacketQueue::pushPacket().

◆ removePacket()

virtual void inet::queueing::IPacketBuffer::removePacket ( Packet packet)
pure virtual

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