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

NameTree iterator. More...

#include <name-tree-iterator.hpp>

Inheritance diagram for nfd::name_tree::Iterator:
Collaboration diagram for nfd::name_tree::Iterator:

Public Member Functions

 Iterator ()
 
 Iterator (shared_ptr< EnumerationImpl > impl, const Entry *ref)
 
const Entryoperator* () const
 
const Entryoperator-> () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Friends

class FullEnumerationImpl
 
class PartialEnumerationImpl
 
class PrefixMatchImpl
 
std::ostream & operator<< (std::ostream &, const Iterator &)
 

Detailed Description

NameTree iterator.

Definition at line 72 of file name-tree-iterator.hpp.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

nfd::name_tree::Iterator::Iterator ( )

Definition at line 46 of file name-tree-iterator.cpp.

◆ Iterator() [2/2]

nfd::name_tree::Iterator::Iterator ( shared_ptr< EnumerationImpl impl,
const Entry ref 
)

Definition at line 53 of file name-tree-iterator.cpp.

References NFD_LOG_TRACE.

Member Function Documentation

◆ operator*()

const Entry& nfd::name_tree::Iterator::operator* ( ) const
inline

Definition at line 80 of file name-tree-iterator.hpp.

◆ operator->()

const Entry* nfd::name_tree::Iterator::operator-> ( ) const
inline

Definition at line 87 of file name-tree-iterator.hpp.

References ns3::ndn::operator==().

◆ operator++() [1/2]

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

Definition at line 64 of file name-tree-iterator.cpp.

References NFD_LOG_TRACE.

Referenced by operator++().

◆ operator++() [2/2]

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

Definition at line 73 of file name-tree-iterator.cpp.

References operator++().

◆ operator==()

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

Definition at line 81 of file name-tree-iterator.cpp.

◆ operator!=()

bool nfd::name_tree::Iterator::operator!= ( const Iterator other) const
inline

Definition at line 103 of file name-tree-iterator.hpp.

References nfd::name_tree::operator<<(), and ns3::ndn::operator==().

Friends And Related Function Documentation

◆ FullEnumerationImpl

friend class FullEnumerationImpl
friend

Definition at line 126 of file name-tree-iterator.hpp.

◆ PartialEnumerationImpl

friend class PartialEnumerationImpl
friend

Definition at line 127 of file name-tree-iterator.hpp.

◆ PrefixMatchImpl

friend class PrefixMatchImpl
friend

Definition at line 128 of file name-tree-iterator.hpp.

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const Iterator  
)
friend

Definition at line 87 of file name-tree-iterator.cpp.


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