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

Iterator over the set of byte tags in a packet. More...

#include <packet.h>

+ Collaboration diagram for ns3::ByteTagIterator:


class  Item
 Identifies a byte tag and a set of bytes within a packet to which the tag applies. More...

Public Member Functions

bool HasNext (void) const
Item Next (void)

Private Member Functions

 ByteTagIterator (ByteTagList::Iterator i)

Private Attributes

ByteTagList::Iterator m_current


class Packet

Detailed Description

Iterator over the set of byte tags in a packet.

This is a java-style iterator.

Definition at line 50 of file packet.h.

Constructor & Destructor Documentation

ns3::ByteTagIterator::ByteTagIterator ( ByteTagList::Iterator  i)

Definition at line 78 of file packet.cc.

Member Function Documentation

bool ns3::ByteTagIterator::HasNext ( void  ) const
true if calling Next is safe, false otherwise.

Definition at line 65 of file packet.cc.

References ns3::ByteTagList::Iterator::HasNext(), and m_current.

Referenced by PacketTest::DoCheck(), ns3::Packet::FindFirstMatchingByteTag(), ns3::AnimationInterface::GetAnimUidFromPacket(), and ns3::Packet::PrintByteTags().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Packet

Definition at line 102 of file packet.h.

Member Data Documentation

ByteTagList::Iterator ns3::ByteTagIterator::m_current

Definition at line 104 of file packet.h.

Referenced by HasNext(), and Next().

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