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

Classes

struct  TagData
 

Public Member Functions

 PacketTagList (PacketTagList const &o)
 
void Add (Tag const &tag) const
 
const struct
PacketTagList::TagData
Head (void) const
 
PacketTagListoperator= (PacketTagList const &o)
 
bool Peek (Tag &tag) const
 
bool Remove (Tag &tag)
 
void RemoveAll (void)
 

Private Member Functions

struct PacketTagList::TagDataAllocData (void) const
 
void FreeData (struct TagData *data) const
 
bool Remove (TypeId tid)
 

Private Attributes

struct TagDatam_next
 

Static Private Attributes

static struct
PacketTagList::TagData
g_free
 
static uint32_t g_nfree
 

Detailed Description

Definition at line 39 of file packet-tag-list.h.

Member Function Documentation

bool ns3::PacketTagList::Remove ( Tag tag)

XXX Note: I believe that we could optimize this to avoid copying each TagData located after the target id and just link the already-copied list to the next tag.

Definition at line 87 of file packet-tag-list.cc.

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

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


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