Public Member Functions | Friends

ns3::ByteTagIterator::Item Class Reference

#include <packet.h>

Collaboration diagram for ns3::ByteTagIterator::Item:
Collaboration graph
[legend]

List of all members.

Public Member Functions

TypeId GetTypeId (void) const
uint32_t GetStart (void) const
uint32_t GetEnd (void) const
void GetTag (Tag &tag) const

Friends

class ByteTagIterator

Detailed Description

Identifies a tag and a set of bytes within a packet to which the tag applies.


Member Function Documentation

uint32_t ns3::ByteTagIterator::Item::GetEnd ( void   )  const
Returns:
the index of the last byte tagged by this tag.

The index is an offset from the start of the packet.

uint32_t ns3::ByteTagIterator::Item::GetStart ( void   )  const
Returns:
the index of the first byte tagged by this tag.

The index is an offset from the start of the packet.

void ns3::ByteTagIterator::Item::GetTag ( Tag tag  )  const
Parameters:
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.

TypeId ns3::ByteTagIterator::Item::GetTypeId ( void   )  const
Returns:
the ns3::TypeId associated to this tag.

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