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

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

#include <packet.h>

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.

Member Function Documentation

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

Definition at line 69 of file packet.cc.

Referenced by ns3::Packet::FindFirstMatchingByteTag(), and ns3::Packet::PrintByteTags().

ByteTagIterator::Item ns3::ByteTagIterator::Next ( void  )
Returns
the next item found and prepare for the next one.

Definition at line 74 of file packet.cc.

References NS_LOG_FUNCTION.

Referenced by ns3::Packet::FindFirstMatchingByteTag(), and ns3::Packet::PrintByteTags().


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