26 #ifndef NFD_DAEMON_TABLE_PIT_HPP 27 #define NFD_DAEMON_TABLE_PIT_HPP 46 class Pit : noncopyable
50 Pit(NameTree& nameTree);
65 find(
const Interest& interest)
const 67 return const_cast<Pit*
>(
this)->findOrInsert(interest,
false).first;
75 std::pair<shared_ptr<Entry>,
bool>
78 return this->findOrInsert(interest,
true);
92 this->
erase(entry,
true);
132 std::pair<shared_ptr<Entry>,
bool>
133 findOrInsert(
const Interest& interest,
bool allowInsert);
136 NameTree& m_nameTree;
146 #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
void erase(Entry *entry)
deletes an entry
std::vector< shared_ptr< Entry > > DataMatchResult