|
INET Framework for OMNeT++/OMNEST
|
This class defines the interface for packet buffers. More...
#include <IPacketBuffer.h>
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 Packet * | getPacket (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... | |
This class defines the interface for packet buffers.
|
pure virtual |
Adds the packet to the buffer.
Implemented in inet::queueing::PacketBuffer.
Referenced by inet::queueing::PacketQueue::pushPacket().
|
pure virtual |
Removes the packet from the buffer.
Implements inet::queueing::IPacketCollection.
Implemented in inet::queueing::PacketBuffer.
Referenced by inet::queueing::PacketQueue::pullPacket(), and inet::queueing::PacketQueue::removePacket().