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

NameTree iterator. More...

#include <name-tree-iterator.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = const Entry
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

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.

Member Typedef Documentation

◆ iterator_category

using nfd::name_tree::Iterator::iterator_category = std::forward_iterator_tag

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

◆ value_type

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

◆ difference_type

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

◆ pointer

◆ reference

Constructor & Destructor Documentation

◆ Iterator() [1/2]

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

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

◆ Iterator() [2/2]

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

Definition at line 48 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 86 of file name-tree-iterator.hpp.

◆ operator->()

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

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

◆ operator++() [1/2]

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

Definition at line 59 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 68 of file name-tree-iterator.cpp.

References operator++().

◆ operator==()

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

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

Referenced by operator!=().

◆ operator!=()

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

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

References operator==().

Friends And Related Function Documentation

◆ FullEnumerationImpl

friend class FullEnumerationImpl
friend

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

◆ PartialEnumerationImpl

friend class PartialEnumerationImpl
friend

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

◆ PrefixMatchImpl

friend class PrefixMatchImpl
friend

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

◆ operator<<

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

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


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