A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::PacketTagIterator::Item Class Reference

#include <packet.h>

Public Member Functions

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

Private Member Functions

 Item (const struct PacketTagList::TagData *data)

Private Attributes

const struct


class PacketTagIterator

Detailed Description

Identifies a tag within a packet.

Definition at line 119 of file packet.h.

Member Function Documentation

void ns3::PacketTagIterator::Item::GetTag ( Tag tag) const
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.

Definition at line 122 of file packet.cc.

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

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

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

Definition at line 117 of file packet.cc.

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

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