Identifies a packet tag within a packet. More...
#include "packet.h"
Public Member Functions | |
void | GetTag (Tag &tag) const |
Read the requested tag and store it in the user-provided tag instance. | |
TypeId | GetTypeId () const |
Private Member Functions | |
Item (const PacketTagList::TagData *data) | |
Constructor. | |
Private Attributes | |
const PacketTagList::TagData * | m_data |
the tag data | |
Friends | |
class | PacketTagIterator |
Friend class. | |
|
private |
void ns3::PacketTagIterator::Item::GetTag | ( | Tag & | tag | ) | const |
Read the requested tag and store it in the user-provided tag instance.
tag | the user tag to which the data should be copied. |
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 113 of file packet.cc.
References ns3::Tag::Deserialize(), ns3::ObjectBase::GetInstanceTypeId(), and NS_ASSERT.
Referenced by ns3::Packet::PrintPacketTags().
TypeId ns3::PacketTagIterator::Item::GetTypeId | ( | ) | const |
Definition at line 107 of file packet.cc.
Referenced by ns3::Packet::PrintPacketTags().
|
friend |
|
private |