A Discrete-Event Network Simulator
API
QueueDiscTestItem Class Reference

Queue Disc Test Item. More...

+ Inheritance diagram for QueueDiscTestItem:
+ Collaboration diagram for QueueDiscTestItem:

Public Member Functions

 QueueDiscTestItem ()=delete
 
 QueueDiscTestItem (const QueueDiscTestItem &)=delete
 
 QueueDiscTestItem (Ptr< Packet > p)
 Constructor. More...
 
 ~QueueDiscTestItem () override
 
void AddHeader () override
 Add the header to the packet. More...
 
bool Mark () override
 Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification. More...
 
QueueDiscTestItemoperator= (const QueueDiscTestItem &)=delete
 
- Public Member Functions inherited from ns3::QueueDiscItem
 QueueDiscItem ()=delete
 
 QueueDiscItem (const QueueDiscItem &)=delete
 
 QueueDiscItem (Ptr< Packet > p, const Address &addr, uint16_t protocol)
 Create a queue disc item. More...
 
 ~QueueDiscItem () override
 
Address GetAddress () const
 Get the MAC address included in this item. More...
 
uint16_t GetProtocol () const
 Get the L3 protocol included in this item. More...
 
Time GetTimeStamp () const
 Get the timestamp included in this item. More...
 
uint8_t GetTxQueueIndex () const
 Get the transmission queue index included in this item. More...
 
virtual uint32_t Hash (uint32_t perturbation=0) const
 Computes the hash of various fields of the packet header. More...
 
QueueDiscItemoperator= (const QueueDiscItem &)=delete
 
void Print (std::ostream &os) const override
 Print the item contents. More...
 
void SetTimeStamp (Time t)
 Set the timestamp included in this item. 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 ()=delete
 
 QueueItem (const QueueItem &)=delete
 
 QueueItem (Ptr< Packet > p)
 Create a queue item containing a packet. More...
 
virtual ~QueueItem ()
 
Ptr< PacketGetPacket () const
 
virtual uint32_t GetSize () 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...
 
QueueItemoperator= (const QueueItem &)=delete
 
- Public Member Functions inherited from ns3::SimpleRefCount< QueueItem >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount () const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o[[maybe_unused]])
 Assignment operator. More...
 
void Ref () const
 Increment the reference count. More...
 
void Unref () const
 Decrement the reference count. More...
 

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...
 

Detailed Description

Queue Disc Test Item.

Definition at line 47 of file tc-flow-control-test-suite.cc.

Constructor & Destructor Documentation

◆ QueueDiscTestItem() [1/3]

QueueDiscTestItem::QueueDiscTestItem ( Ptr< Packet p)

Constructor.

Parameters
pthe packet stored in this item

Definition at line 67 of file tc-flow-control-test-suite.cc.

◆ ~QueueDiscTestItem()

QueueDiscTestItem::~QueueDiscTestItem ( )
override

Definition at line 72 of file tc-flow-control-test-suite.cc.

◆ QueueDiscTestItem() [2/3]

QueueDiscTestItem::QueueDiscTestItem ( )
delete

◆ QueueDiscTestItem() [3/3]

QueueDiscTestItem::QueueDiscTestItem ( const QueueDiscTestItem )
delete

Member Function Documentation

◆ AddHeader()

void QueueDiscTestItem::AddHeader ( )
overridevirtual

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 77 of file tc-flow-control-test-suite.cc.

◆ Mark()

bool QueueDiscTestItem::Mark ( )
overridevirtual

Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification.

Returns
true if the packet is marked by this method or is already marked, false otherwise

Implements ns3::QueueDiscItem.

Definition at line 82 of file tc-flow-control-test-suite.cc.

◆ operator=()

QueueDiscTestItem& QueueDiscTestItem::operator= ( const QueueDiscTestItem )
delete

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