A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::PacketTagList::TagData Struct Reference

Tree node for sharing serialized tags. More...

#include "packet-tag-list.h"

+ Collaboration diagram for ns3::PacketTagList::TagData:

Public Attributes

uint32_t count
 Number of incoming links.
 
uint8_t data [1]
 Serialization buffer.
 
TagDatanext
 Pointer to next in list.
 
uint32_t size
 Size of the data buffer.
 
TypeId tid
 Type of the tag serialized into data.
 

Detailed Description

Tree node for sharing serialized tags.

See PacketTagList for a discussion of the data structure.

Internal:
Unfortunately this has to be public, because PacketTagIterator::Item::GetTag() needs the data and size values. The Item nested class can't be forward declared, so friending isn't possible.

We use placement new so we can allocate enough room for the Tag type which will be serialized into data. See Object::Aggregates for a similar construction.

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

Member Data Documentation

◆ count

◆ data

uint8_t ns3::PacketTagList::TagData::data[1]

◆ next

◆ size

◆ tid

TypeId ns3::PacketTagList::TagData::tid

The documentation for this struct was generated from the following file: