22 #include "ns3/packet.h" 
   79     m_protocol (protocol),
 
  138      << 
"txq " << (uint8_t) 
m_txq 
uint8_t GetTxQueueIndex(void) const 
Get the transmission queue index included in this item. 
 
Simulation virtual time values and global simulation resolution. 
 
Base class to represent items of packet Queues. 
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
Time m_tstamp
timestamp when the packet was enqueued 
 
QueueItem()
Default constructor. 
 
uint8_t m_txq
Transmission queue index. 
 
void SetTxQueueIndex(uint8_t txq)
Set the transmission queue index to store in this item. 
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
Ptr< Packet > m_packet
The packet contained in the queue item. 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
uint32_t GetSize(void) const 
Returns the the size in bytes of the packet (including the zero-filled initial payload). 
 
Address GetAddress(void) const 
Get the MAC address included in this item. 
 
Time GetTimeStamp(void) const 
Get the timestamp included in this item. 
 
a polymophic address class 
 
uint16_t m_protocol
L3 Protocol number. 
 
QueueDiscItem()
Default constructor. 
 
void SetTimeStamp(Time t)
Set the timestamp included in this item. 
 
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 GetUint8Value(Uint8Values field, uint8_t &value) const 
Retrieve the value of a given field from the packet, if present. 
 
virtual void Print(std::ostream &os) const 
Print the item contents. 
 
Uint8Values
1-byte fields of the packet whose value can be retrieved, if present 
 
virtual void Print(std::ostream &os) const 
Print the item contents. 
 
virtual uint32_t GetSize(void) const 
Use this method (instead of GetPacket ()->GetSize ()) to get the packet size. 
 
uint16_t GetProtocol(void) const 
Get the L3 protocol included in this item. 
 
Address m_address
MAC destination address. 
 
Ptr< Packet > GetPacket(void) const