NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::pit::Iterator Class Reference

PIT iterator. More...

#include <pit-iterator.hpp>

Inheritance diagram for nfd::pit::Iterator:
Collaboration diagram for nfd::pit::Iterator:

Public Member Functions

 Iterator (const NameTree::const_iterator &ntIt=NameTree::const_iterator(), size_t iPitEntry=0)
 constructor More...
const Entryoperator* () const
const shared_ptr< Entry > & operator-> () const
Iteratoroperator++ ()
Iterator operator++ (int)
bool operator== (const Iterator &other) const
bool operator!= (const Iterator &other) const

Detailed Description

PIT iterator.

Definition at line 37 of file pit-iterator.hpp.

Constructor & Destructor Documentation

◆ Iterator()

nfd::pit::Iterator::Iterator ( const NameTree::const_iterator ntIt = NameTree::const_iterator(),
size_t  iPitEntry = 0 


ntIta name tree iterator that visits name tree entries with one or more PIT entries
iPitEntrymake this iterator to dereference to the i-th PIT entry in name tree entry

Definition at line 34 of file pit-iterator.cpp.

Member Function Documentation

◆ operator*()

const Entry& nfd::pit::Iterator::operator* ( ) const

Definition at line 48 of file pit-iterator.hpp.

References operator->().

◆ operator->()

const shared_ptr<Entry>& nfd::pit::Iterator::operator-> ( ) const

Definition at line 54 of file pit-iterator.hpp.

References nfd::name_tree::Entry::getPitEntries().

Referenced by operator*().

◆ operator++() [1/2]

Iterator & nfd::pit::Iterator::operator++ ( )

◆ operator++() [2/2]

Iterator nfd::pit::Iterator::operator++ ( int  )

Definition at line 56 of file pit-iterator.cpp.

References operator++().

◆ operator==()

bool nfd::pit::Iterator::operator== ( const Iterator other) const

Definition at line 68 of file pit-iterator.hpp.

Referenced by operator!=().

◆ operator!=()

bool nfd::pit::Iterator::operator!= ( const Iterator other) const

Definition at line 74 of file pit-iterator.hpp.

References operator==().

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