ns-3
ns3::PacketTagIterator::Item Class Reference

#include <packet.h>

List of all members.

Public Member Functions

TypeId GetTypeId (void) const
void GetTag (Tag &tag) const

Friends

class PacketTagIterator

Detailed Description

Identifies a tag within a packet.


Member Function Documentation

void ns3::PacketTagIterator::Item::GetTag ( Tag tag) const
Parameters:
tagthe user tag to which the data should be copied.

Read the requested tag and store it in the user-provided tag instance. This method will crash if the type of the tag provided by the user does not match the type of the underlying tag.

References ns3::Tag::Deserialize(), ns3::ObjectBase::GetInstanceTypeId(), NS_ASSERT, and PACKET_TAG_MAX_SIZE.

Referenced by ns3::Packet::PrintPacketTags().

TypeId ns3::PacketTagIterator::Item::GetTypeId ( void  ) const
Returns:
the ns3::TypeId associated to this tag.

Referenced by ns3::Packet::PrintPacketTags().


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