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

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

#include <packet.h>

+ Collaboration diagram for ns3::ByteTagIterator:

Classes

class  Item

Public Member Functions

bool HasNext (void) const
Item Next (void)

Private Member Functions

 ByteTagIterator (ByteTagList::Iterator i)

Private Attributes

ByteTagList::Iterator m_current

Friends

class Packet

Detailed Description

Iterator over the set of 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)
private

Definition at line 78 of file packet.cc.

Member Function Documentation

bool ns3::ByteTagIterator::HasNext ( void  ) const
Returns
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 ns3::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
friend

Definition at line 102 of file packet.h.

Member Data Documentation

ByteTagList::Iterator ns3::ByteTagIterator::m_current
private

Definition at line 104 of file packet.h.

Referenced by HasNext(), and Next().


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