nfd::pit::Iterator Class Reference

PIT iterator. More...

#include <daemon/table/pit.hpp>

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

Public Member Functions

 Iterator (const NameTree::const_iterator &ntIt={}, size_t iPitEntry=0)
 Constructor. More...
 
const Entryoperator* () const noexcept
 
Iteratoroperator++ ()
 

Friends

bool operator== (const Iterator &lhs, const Iterator &rhs) noexcept
 

Detailed Description

PIT iterator.

Definition at line 43 of file pit.hpp.

Constructor & Destructor Documentation

◆ Iterator()

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

Constructor.

Parameters
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 52 of file pit.hpp.

Member Function Documentation

◆ operator*()

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

Definition at line 59 of file pit.hpp.

◆ operator++()

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

Definition at line 31 of file pit.cpp.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 70 of file pit.hpp.