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

#include <packet.h>

+ Collaboration diagram for ns3::PacketTagIterator::Item:

Public Member Functions

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

Private Member Functions

 Item (const struct PacketTagList::TagData *data)

Private Attributes

struct PacketTagList::TagDatam_data

Friends

class PacketTagIterator

Detailed Description

Identifies a tag within a packet.

Definition at line 119 of file packet.h.

Constructor & Destructor Documentation

ns3::PacketTagIterator::Item::Item ( const struct PacketTagList::TagData data)
private

Definition at line 102 of file packet.cc.

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.

Definition at line 112 of file packet.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 107 of file packet.cc.

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

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class PacketTagIterator
friend

Definition at line 136 of file packet.h.

Member Data Documentation

struct PacketTagList::TagData* ns3::PacketTagIterator::Item::m_data
private

Definition at line 138 of file packet.h.


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