ns-3
ns3::Tag Class Reference

tag a set of bytes in a packet More...

#include <tag.h>

Inheritance diagram for ns3::Tag:
Collaboration diagram for ns3::Tag:

List of all members.

Public Member Functions

virtual uint32_t GetSerializedSize (void) const =0
virtual void Serialize (TagBuffer i) const =0
virtual void Deserialize (TagBuffer i)=0
virtual void Print (std::ostream &os) const =0
- Public Member Functions inherited from ns3::ObjectBase
virtual TypeId GetInstanceTypeId (void) const =0
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::Tag.

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
virtual void NotifyConstructionCompleted (void)
void ConstructSelf (const AttributeConstructionList &attributes)

Detailed Description

tag a set of bytes in a packet

New kinds of tags can be created by subclassing this base class.


Member Function Documentation

virtual void ns3::Tag::Deserialize ( TagBuffer  i)
pure virtual
virtual uint32_t ns3::Tag::GetSerializedSize ( void  ) const
pure virtual
TypeId ns3::Tag::GetTypeId ( void  )
static
virtual void ns3::Tag::Serialize ( TagBuffer  i) const
pure virtual
Parameters:
ithe buffer to write data into.

Write the content of the tag in the provided tag buffer. DO NOT attempt to write more bytes than you requested with Tag::GetSerializedSize.

Implemented in ns3::SocketSetDontFragmentTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, ns3::QosTag, ns3::LteRadioBearerTag, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, ns3::PdcpTag, ns3::RlcTag, ns3::LtePhyTag, ns3::LteRlcSduStatusTag, and ns3::FlowIdTag.

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


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