INET Framework for OMNeT++/OMNEST
|
Passive FIFO Queue with unlimited buffer space. More...
#include <FIFOQueue.h>
Public Member Functions | |
FIFOQueue () | |
Public Member Functions inherited from inet::PassiveQueueBase | |
virtual void | requestPacket () override |
The queue should send a packet whenever this method is invoked. More... | |
virtual int | getNumPendingRequests () override |
Returns number of pending requests. More... | |
virtual void | clear () override |
Clear all queued packets and stored requests. More... | |
virtual cMessage * | pop () override |
Return a packet from the queue directly. More... | |
virtual void | addListener (IPassiveQueueListener *listener) override |
Implementation of IPassiveQueue::addListener(). More... | |
virtual void | removeListener (IPassiveQueueListener *listener) override |
Implementation of IPassiveQueue::removeListener(). More... | |
Public Member Functions inherited from inet::IPassiveQueue | |
virtual | ~IPassiveQueue () |
Public Member Functions inherited from inet::IQueueAccess | |
virtual | ~IQueueAccess () |
Protected Member Functions | |
virtual void | initialize () override |
virtual cMessage * | enqueue (cMessage *msg) override |
Inserts packet into the queue or the priority queue, or drops it (or another packet). More... | |
virtual cMessage * | dequeue () override |
Returns a packet from the queue, or nullptr if the queue is empty. More... | |
virtual void | sendOut (cMessage *msg) override |
Should be redefined to send out the packet; e.g. More... | |
virtual bool | isEmpty () override |
Return true when queue is empty, otherwise return false. More... | |
virtual int | getLength () const override |
Returns the number of frames in the queue. More... | |
virtual int | getByteLength () const override |
Returns the number of bytes in the queue. More... | |
Protected Member Functions inherited from inet::PassiveQueueBase | |
virtual void | handleMessage (cMessage *msg) override |
virtual void | finish () override |
virtual void | refreshDisplay () const override |
virtual void | notifyListeners () |
Protected Attributes | |
cQueue | queue |
cGate * | outGate |
int | byteLength |
Protected Attributes inherited from inet::PassiveQueueBase | |
std::list< IPassiveQueueListener * > | listeners |
int | packetRequested |
int | numQueueReceived |
int | numQueueDropped |
Static Protected Attributes | |
static simsignal_t | queueLengthSignal = registerSignal("queueLength") |
Additional Inherited Members | |
Static Public Attributes inherited from inet::PassiveQueueBase | |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
Signal with packet when received it. More... | |
static simsignal_t | enqueuePkSignal = registerSignal("enqueuePk") |
Signal with packet when enqueued it. More... | |
static simsignal_t | dequeuePkSignal = registerSignal("dequeuePk") |
Signal with packet when sent out it. More... | |
static simsignal_t | dropPkByQueueSignal = registerSignal("dropPkByQueue") |
Signal with packet when dropped it. More... | |
static simsignal_t | queueingTimeSignal = registerSignal("queueingTime") |
Signal with value of delaying time when sent out a packet. More... | |
Passive FIFO Queue with unlimited buffer space.
|
inline |
|
overrideprotectedvirtual |
Returns a packet from the queue, or nullptr if the queue is empty.
Implements inet::PassiveQueueBase.
|
overrideprotectedvirtual |
Inserts packet into the queue or the priority queue, or drops it (or another packet).
Returns nullptr if successful, or the pointer of the dropped packet.
Implements inet::PassiveQueueBase.
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::PassiveQueueBase.
|
overrideprotectedvirtual |
Return true when queue is empty, otherwise return false.
Implements inet::IPassiveQueue.
|
overrideprotectedvirtual |
Should be redefined to send out the packet; e.g.
send(msg,"out")
.
Implements inet::PassiveQueueBase.
|
protected |
Referenced by initialize(), and sendOut().
|
protected |
Referenced by dequeue(), enqueue(), initialize(), and isEmpty().
|
staticprotected |