OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CPACKETQUEUE_H
17 #define __OMNETPP_CPACKETQUEUE_H
40 virtual void insert(
cObject *obj)
override;
94 virtual std::string str()
const override;
101 virtual void parsimPack(
cCommBuffer *buffer)
const override;
108 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
118 virtual void insert(
cPacket *pkt);
146 virtual cPacket *pop()
override;
152 virtual void clear()
override;
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
virtual cObject * front() const
virtual cPacket * front() const override
Definition: cpacketqueue.h:174
virtual cPacket * get(int i) const override
Definition: cpacketqueue.h:188
virtual cObject * back() const
Base class for object comparators, used by cQueue for priority queuing.
Definition: cqueue.h:57
cPacketQueue(const char *name=nullptr, Comparator *cmp=nullptr)
Definition: cpacketqueue.h:57
A queue class specialized for cPacket objects.
Definition: cpacketqueue.h:33
virtual cPacket * back() const override
Definition: cpacketqueue.h:181
int64_t getByteLength() const
Definition: cpacketqueue.h:167
A subclass of cMessage to represent packets, frames, datagrams, application messages,...
Definition: cpacket.h:52
Queue class for objects derived from cObject.
Definition: cqueue.h:42
cPacketQueue(const char *name, CompareFunc cmp)
Definition: cpacketqueue.h:62
int64_t getBitLength() const
Definition: cpacketqueue.h:161
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
virtual cObject * get(int i) const
virtual cPacketQueue * dup() const override
Definition: cpacketqueue.h:88