21 #ifndef PRIO_QUEUE_DISC_H 22 #define PRIO_QUEUE_DISC_H 24 #include "ns3/queue-disc.h" std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
static TypeId GetTypeId(void)
Get the type ID.
virtual bool DoEnqueue(Ptr< QueueDiscItem > item)
This function actually enqueues a packet into the queue disc.
Smart pointer class similar to boost::intrusive_ptr.
std::array< uint16_t, 16 > Priomap
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
virtual Ptr< const QueueDiscItem > DoPeek(void)
Return a copy of the next packet the queue disc will extract.
PrioQueueDisc()
PrioQueueDisc constructor.
void SetBandForPriority(uint8_t prio, uint16_t band)
Set the band (class) assigned to packets with specified priority.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool CheckConfig(void)
Check whether the current configuration is correct.
virtual void InitializeParams(void)
Initialize parameters (if any) before the first packet is enqueued.
uint16_t GetBandForPriority(uint8_t prio) const
Get the band (class) assigned to packets with specified priority.
Priomap m_prio2band
Priority to band mapping.
a unique identifier for an interface.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
The Prio qdisc is a simple classful queueing discipline that contains an arbitrary number of classes ...
virtual Ptr< QueueDiscItem > DoDequeue(void)
This function actually extracts a packet from the queue disc.