26 #ifndef NFD_DAEMON_TABLE_PIT_HPP 27 #define NFD_DAEMON_TABLE_PIT_HPP 48 class Pit : noncopyable
63 shared_ptr<pit::Entry>
64 find(
const Interest& interest)
const;
71 std::pair<shared_ptr<pit::Entry>,
bool>
78 findAllDataMatches(
const Data& data)
const;
84 erase(shared_ptr<pit::Entry> pitEntry);
117 shared_ptr<pit::Entry>
151 std::pair<shared_ptr<pit::Entry>,
bool>
152 findOrInsert(
const Interest& interest,
bool allowInsert);
165 inline shared_ptr<pit::Entry>
168 return const_cast<Pit*
>(
this)->findOrInsert(interest,
false).first;
171 inline std::pair<shared_ptr<pit::Entry>,
bool>
174 return this->findOrInsert(interest,
true);
191 : m_nameTreeIterator(it)
213 if (m_iPitEntry < m_nameTreeIterator->getPitEntries().
size()) {
217 ++m_nameTreeIterator;
228 inline shared_ptr<pit::Entry>
231 return m_nameTreeIterator->getPitEntries().at(m_iPitEntry);
237 return m_nameTreeIterator == other.m_nameTreeIterator &&
238 m_iPitEntry == other.m_iPitEntry;
244 return !(*
this == other);
249 #endif // NFD_DAEMON_TABLE_PIT_HPP const_iterator end() const
returns an iterator referring to the past-the-end PIT entry
bool operator==(const const_iterator &other) const
represents an Interest packet
shared_ptr< pit::Entry > find(const Interest &interest) const
finds a PIT entry for Interest
represents the Interest Table
Table::const_iterator iterator
bool operator!=(const const_iterator &other) const
Copyright (c) 2011-2015 Regents of the University of California.
std::pair< shared_ptr< pit::Entry >, bool > insert(const Interest &interest)
inserts a PIT entry for Interest
shared_ptr< pit::Entry > operator->() const
bool operator!=(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)
const_iterator & operator++()
const pit::Entry & operator*() const
bool operator==(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)
std::vector< shared_ptr< pit::Entry > > DataMatchResult