16 #ifndef __OMNETPP_CPACKETQUEUE_H 17 #define __OMNETPP_CPACKETQUEUE_H 40 virtual void insert(
cObject *obj)
override;
95 virtual std::string str()
const override;
102 virtual void parsimPack(
cCommBuffer *buffer)
const override;
109 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
119 virtual void insert(
cPacket *pkt);
147 virtual cPacket *pop()
override;
153 virtual void clear()
override;
virtual cObject * front() const
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
virtual cPacketQueue * dup() const override
Definition: cpacketqueue.h:89
virtual cPacket * back() const override
Definition: cpacketqueue.h:182
int64_t getByteLength() const
Definition: cpacketqueue.h:168
A subclass of cMessage to represent packets, frames, datagrams, application messages, and similar data.
Definition: cpacket.h:52
int64_t getBitLength() const
Definition: cpacketqueue.h:162
virtual cObject * get(int i) const
cPacketQueue(const char *name=nullptr, Comparator *cmp=nullptr)
Definition: cpacketqueue.h:57
virtual cObject * back() const
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
Queue class for objects derived from cObject.
Definition: cqueue.h:42
Definition: cabstracthistogram.h:21
virtual cPacket * front() const override
Definition: cpacketqueue.h:175
cPacketQueue(const char *name, CompareFunc cmp)
Definition: cpacketqueue.h:62
Base class for object comparators, used by cQueue for priority queuing.
Definition: cqueue.h:57
A queue class specialized for cPacket objects.
Definition: cpacketqueue.h:33