A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | List of all members
FifoQueueDiscTestItem Class Reference

Fifo Queue Disc Test Item. More...

+ Inheritance diagram for FifoQueueDiscTestItem:

Public Member Functions

 FifoQueueDiscTestItem (Ptr< Packet > p, const Address &addr)
 Constructor. More...
 
virtual ~FifoQueueDiscTestItem ()
 
virtual void AddHeader (void)
 Add the header to the packet. More...
 
virtual bool Mark (void)
 Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification. 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...
 
Time GetTimeStamp (void) const
 Get the timestamp included in this item. More...
 
uint8_t GetTxQueueIndex (void) 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...
 
virtual void Print (std::ostream &os) const
 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 (Ptr< Packet > p)
 Create a queue item containing a packet. More...
 
virtual ~QueueItem ()
 
Ptr< PacketGetPacket (void) const
 
virtual uint32_t GetSize (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 ()
 Default 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 operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Member Functions

 FifoQueueDiscTestItem ()
 
 FifoQueueDiscTestItem (const FifoQueueDiscTestItem &)
 Copy constructor Disable default implementation to avoid misuse. More...
 
FifoQueueDiscTestItemoperator= (const FifoQueueDiscTestItem &)
 Assignment operator. 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

Fifo Queue Disc Test Item.

Definition at line 42 of file fifo-queue-disc-test-suite.cc.

Constructor & Destructor Documentation

◆ FifoQueueDiscTestItem() [1/3]

FifoQueueDiscTestItem::FifoQueueDiscTestItem ( Ptr< Packet p,
const Address addr 
)

Constructor.

Parameters
pthe packet
addrthe address

Definition at line 71 of file fifo-queue-disc-test-suite.cc.

◆ ~FifoQueueDiscTestItem()

FifoQueueDiscTestItem::~FifoQueueDiscTestItem ( )
virtual

Definition at line 76 of file fifo-queue-disc-test-suite.cc.

◆ FifoQueueDiscTestItem() [2/3]

FifoQueueDiscTestItem::FifoQueueDiscTestItem ( )
private

◆ FifoQueueDiscTestItem() [3/3]

FifoQueueDiscTestItem::FifoQueueDiscTestItem ( const FifoQueueDiscTestItem )
private

Copy constructor Disable default implementation to avoid misuse.

Member Function Documentation

◆ AddHeader()

void FifoQueueDiscTestItem::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 81 of file fifo-queue-disc-test-suite.cc.

◆ Mark()

bool FifoQueueDiscTestItem::Mark ( void  )
virtual

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

Returns
true if the packet gets marked, false otherwise

Implements ns3::QueueDiscItem.

Definition at line 86 of file fifo-queue-disc-test-suite.cc.

◆ operator=()

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

Assignment operator.

Returns
this object Disable default implementation to avoid misuse

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