A Discrete-Event Network Simulator
API
CodelQueueDiscTestItem Class Reference
+ Inheritance diagram for CodelQueueDiscTestItem:
+ Collaboration diagram for CodelQueueDiscTestItem:

Public Member Functions

 CodelQueueDiscTestItem (Ptr< Packet > p, const Address &addr, uint16_t protocol)
 
virtual ~CodelQueueDiscTestItem ()
 
virtual void AddHeader (void)
 Add the header to the packet. More...
 
- Public Member Functions inherited from ns3::QueueDiscItem
 QueueDiscItem (Ptr< Packet > p, const Address &addr, uint16_t protocol)
 Create a queue disc item. More...
 
virtual ~QueueDiscItem ()
 
Address GetAddress (void) const
 Get the MAC address included in this item. More...
 
uint16_t GetProtocol (void) const
 Get the L3 protocol included in this item. More...
 
uint8_t GetTxQueueIndex (void) const
 Get the transmission queue index included in this item. More...
 
virtual void Print (std::ostream &os) const
 Print the item contents. More...
 
void SetTxQueueIndex (uint8_t txq)
 Set the transmission queue index to store in this item. More...
 
- Public Member Functions inherited from ns3::QueueItem
 QueueItem (Ptr< Packet > p)
 Create a queue item containing a packet. More...
 
virtual ~QueueItem ()
 
Ptr< PacketGetPacket (void) const
 
virtual uint32_t GetPacketSize (void) const
 Use this method (instead of GetPacket ()->GetSize ()) to get the packet size. More...
 
virtual bool GetUint8Value (Uint8Values field, uint8_t &value) const
 Retrieve the value of a given field from the packet, if present. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< QueueItem >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Member Functions

 CodelQueueDiscTestItem ()
 
 CodelQueueDiscTestItem (const CodelQueueDiscTestItem &)
 
CodelQueueDiscTestItemoperator= (const CodelQueueDiscTestItem &)
 

Additional Inherited Members

- Public Types inherited from ns3::QueueItem
typedef void(* TracedCallback) (Ptr< const QueueItem > item)
 TracedCallback signature for Ptr<QueueItem> More...
 
enum  Uint8Values { IP_DSFIELD }
 1-byte fields of the packet whose value can be retrieved, if present More...
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< QueueItem >
static void Cleanup (void)
 Noop. More...
 

Detailed Description

Definition at line 57 of file codel-queue-disc-test-suite.cc.

Constructor & Destructor Documentation

CodelQueueDiscTestItem::CodelQueueDiscTestItem ( Ptr< Packet p,
const Address addr,
uint16_t  protocol 
)

Definition at line 69 of file codel-queue-disc-test-suite.cc.

CodelQueueDiscTestItem::~CodelQueueDiscTestItem ( )
virtual

Definition at line 74 of file codel-queue-disc-test-suite.cc.

CodelQueueDiscTestItem::CodelQueueDiscTestItem ( )
private
CodelQueueDiscTestItem::CodelQueueDiscTestItem ( const CodelQueueDiscTestItem )
private

Member Function Documentation

void CodelQueueDiscTestItem::AddHeader ( void  )
virtual

Add the header to the packet.

Subclasses may keep header and payload separate to allow manipulating the header, so this method allows to add the header to the packet before sending the packet to the device.

Implements ns3::QueueDiscItem.

Definition at line 79 of file codel-queue-disc-test-suite.cc.

CodelQueueDiscTestItem& CodelQueueDiscTestItem::operator= ( const CodelQueueDiscTestItem )
private

The documentation for this class was generated from the following file: