nfd::name_tree::Iterator Class Reference

NameTree iterator. More...

#include <daemon/table/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 noexcept
 
Iteratoroperator++ ()
 

Friends

class FullEnumerationImpl
 
std::ostream & operator<< (std::ostream &, const Iterator &)
 
bool operator== (const Iterator &lhs, const Iterator &rhs) noexcept
 
class PartialEnumerationImpl
 
class PrefixMatchImpl
 

Detailed Description

NameTree iterator.

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

Constructor & Destructor Documentation

◆ Iterator() [1/2]

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

◆ Iterator() [2/2]

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

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

Member Function Documentation

◆ operator*()

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

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

◆ operator++()

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

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

Friends And Related Function Documentation

◆ FullEnumerationImpl

friend class FullEnumerationImpl
friend

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

◆ operator<<

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

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

◆ operator==

bool operator== ( const Iterator lhs,
const Iterator rhs 
)
friend

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

◆ PartialEnumerationImpl

friend class PartialEnumerationImpl
friend

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

◆ PrefixMatchImpl

friend class PrefixMatchImpl
friend

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