represents the Interest Table More...
#include <pit.hpp>
Public Types | |
typedef Iterator | const_iterator |
Public Member Functions | |
Pit (NameTree &nameTree) | |
size_t | size () const |
shared_ptr< Entry > | find (const Interest &interest) const |
finds a PIT entry for Interest More... | |
std::pair< shared_ptr< Entry >, bool > | insert (const Interest &interest) |
inserts a PIT entry for Interest More... | |
DataMatchResult | findAllDataMatches (const Data &data) const |
performs a Data match More... | |
void | erase (Entry *entry) |
deletes an entry More... | |
void | deleteInOutRecords (Entry *entry, const Face &face) |
deletes in-record and out-record for face More... | |
const_iterator | begin () const |
const_iterator | end () const |
|
explicit |
Definition at line 37 of file pit.cpp.
References nfd::name_tree::NameTree::findExactMatch(), ndn::Interest::getName(), nfd::name_tree::Entry::getPitEntries(), ndn::Name::getPrefix(), nfd::name_tree::Entry::insertPitEntry(), nfd::name_tree::Entry::isEmpty(), nfd::name_tree::NameTree::lookup(), and ndn::Name::size().
|
inline |
Definition at line 55 of file pit.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
finds a PIT entry for Interest
interest | the Interest |
Definition at line 65 of file pit.hpp.
Referenced by nfd::Forwarder::startProcessNack().
inserts a PIT entry for Interest
interest | the Interest; must be created with make_shared |
Definition at line 76 of file pit.hpp.
References findAllDataMatches().
Referenced by nfd::Forwarder::startProcessNack().
DataMatchResult nfd::pit::Pit::findAllDataMatches | ( | const Data & | data | ) | const |
performs a Data match
Definition at line 88 of file pit.cpp.
References erase(), nfd::name_tree::NameTree::eraseIfEmpty(), nfd::name_tree::Entry::erasePitEntry(), nfd::name_tree::NameTree::findAllMatches(), nfd::name_tree::NameTree::getEntry(), ndn::Data::getName(), and nfd::pit::nteHasPitEntries().
Referenced by insert(), and nfd::Forwarder::startProcessNack().
|
inline |
deletes an entry
Definition at line 90 of file pit.hpp.
References deleteInOutRecords().
Referenced by end(), findAllDataMatches(), and nfd::Forwarder::startProcessNack().
deletes in-record and out-record for face
Definition at line 117 of file pit.cpp.
References nfd::pit::Entry::deleteInRecord(), and nfd::pit::Entry::deleteOutRecord().
Referenced by nfd::cleanupOnFaceRemoval(), and erase().
Pit::const_iterator nfd::pit::Pit::begin | ( | ) | const |
Definition at line 128 of file pit.cpp.
References nfd::name_tree::NameTree::fullEnumerate(), and nfd::pit::nteHasPitEntries().
|
inline |