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::Entry::getName(), ndn::Interest::getName(), nfd::name_tree::Entry::getPitEntries(), ndn::Name::getPrefix(), nfd::name_tree::Entry::insertPitEntry(), nfd::name_tree::Entry::isEmpty(), and ndn::Name::size().
|
inline |
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().
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::Entry::erasePitEntry(), ndn::Data::getName(), and nfd::pit::nteHasPitEntries().
Referenced by insert().
|
inline |
deletes an entry
Definition at line 90 of file pit.hpp.
References deleteInOutRecords(), and Face.
Referenced by end(), and findAllDataMatches().
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 erase().
Pit::const_iterator nfd::pit::Pit::begin | ( | ) | const |
Definition at line 128 of file pit.cpp.
References nfd::pit::nteHasPitEntries().
|
inline |
Definition at line 115 of file pit.hpp.
References erase(), and nfd::name_tree::NameTree.