ns-3
|
#include <packet.h>
Public Member Functions | |
TypeId | GetTypeId (void) const |
void | GetTag (Tag &tag) const |
Friends | |
class | PacketTagIterator |
Identifies a tag within a packet.
void ns3::PacketTagIterator::Item::GetTag | ( | Tag & | tag | ) | const |
tag | the 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 |
Referenced by ns3::Packet::PrintPacketTags().