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-records and out-records 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(), nfd::name_tree::NameTree::getMaxDepth(), ndn::Interest::getName(), nfd::name_tree::Entry::getPitEntries(), nfd::name_tree::Entry::insertPitEntry(), nfd::name_tree::Entry::isEmpty(), nfd::name_tree::NameTree::lookup(), and ndn::Name::size().
|
inline |
Definition at line 56 of file pit.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
Finds a PIT entry for interest
.
interest | the Interest |
Definition at line 66 of file pit.hpp.
Referenced by nfd::Forwarder::onIncomingNack().
Inserts a PIT entry for interest
.
interest | the Interest; must be created with make_shared |
Definition at line 77 of file pit.hpp.
References findAllDataMatches().
Referenced by nfd::Forwarder::Forwarder().
DataMatchResult nfd::pit::Pit::findAllDataMatches | ( | const Data & | data | ) | const |
Performs a Data match.
data
Definition at line 86 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::onIncomingData().
|
inline |
Deletes an entry.
Definition at line 91 of file pit.hpp.
References deleteInOutRecords(), and Face.
Referenced by end(), findAllDataMatches(), and nfd::Forwarder::onInterestFinalize().
Deletes in-records and out-records for face
.
Definition at line 115 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 126 of file pit.cpp.
References nfd::name_tree::NameTree::fullEnumerate(), and nfd::pit::nteHasPitEntries().
|
inline |