26 #ifndef NFD_DAEMON_TABLE_PIT_HPP 27 #define NFD_DAEMON_TABLE_PIT_HPP 47 class Pit : noncopyable
51 Pit(NameTree& nameTree);
66 find(
const Interest& interest)
const 68 return const_cast<Pit*
>(
this)->findOrInsert(interest,
false).first;
76 std::pair<shared_ptr<Entry>,
bool>
79 return this->findOrInsert(interest,
true);
93 this->
erase(entry,
true);
133 std::pair<shared_ptr<Entry>,
bool>
134 findOrInsert(
const Interest& interest,
bool allowInsert);
137 NameTree& m_nameTree;
147 #endif // NFD_DAEMON_TABLE_PIT_HPP
const_iterator begin() const
const_iterator end() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void deleteInOutRecords(Entry *entry, const Face &face)
deletes in-record and out-record for face
std::pair< shared_ptr< Entry >, bool > insert(const Interest &interest)
inserts a PIT entry for Interest
represents the Interest Table
DataMatchResult findAllDataMatches(const Data &data) const
performs a Data match
shared_ptr< Entry > find(const Interest &interest) const
finds a PIT entry for Interest
An unordered iterable of all PIT entries matching Data.
void erase(Entry *entry)
deletes an entry