26 #ifndef NFD_DAEMON_TABLE_PIT_ENTRY_HPP
27 #define NFD_DAEMON_TABLE_PIT_ENTRY_HPP
65 Entry(
const Interest& interest);
83 return m_interest->getName();
91 canMatch(
const Interest& interest,
size_t nEqualNameComps = 0)
const;
110 return !m_inRecords.empty();
113 InRecordCollection::iterator
116 return m_inRecords.begin();
119 InRecordCollection::const_iterator
122 return m_inRecords.begin();
125 InRecordCollection::iterator
128 return m_inRecords.end();
131 InRecordCollection::const_iterator
134 return m_inRecords.end();
140 InRecordCollection::iterator
146 InRecordCollection::iterator
177 return !m_outRecords.empty();
180 OutRecordCollection::iterator
183 return m_outRecords.begin();
186 OutRecordCollection::const_iterator
189 return m_outRecords.begin();
192 OutRecordCollection::iterator
195 return m_outRecords.end();
198 OutRecordCollection::const_iterator
201 return m_outRecords.end();
207 OutRecordCollection::iterator
213 OutRecordCollection::iterator
238 shared_ptr<const Interest> m_interest;
244 friend ::nfd::name_tree::Entry;
Base class for an entity onto which StrategyInfo items may be placed.
Generalization of a network interface.
An entry in the name tree.
Represents an entry in the Interest table (PIT).
time::milliseconds dataFreshnessPeriod
Data freshness period.
bool canMatch(const Interest &interest, size_t nEqualNameComps=0) const
InRecordCollection::iterator in_begin()
const Interest & getInterest() const
scheduler::EventId expiryTimer
Expiry timer.
InRecordCollection::const_iterator in_begin() const
InRecordCollection::iterator in_end()
OutRecordCollection::iterator out_end()
OutRecordCollection::const_iterator out_end() const
InRecordCollection::iterator getInRecord(const Face &face)
Get the in-record for face.
const InRecordCollection & getInRecords() const
OutRecordCollection::iterator out_begin()
bool hasOutRecords() const
void deleteInRecord(const Face &face)
Delete the in-record for face if it exists.
Entry(const Interest &interest)
const Name & getName() const
InRecordCollection::const_iterator in_end() const
bool isSatisfied
Indicates whether this PIT entry is satisfied.
OutRecordCollection::iterator insertOrUpdateOutRecord(Face &face, const Interest &interest)
Insert or update an out-record.
bool hasInRecords() const
void clearInRecords()
Delete all in-records.
InRecordCollection::iterator insertOrUpdateInRecord(Face &face, const Interest &interest)
Insert or update an in-record.
OutRecordCollection::const_iterator out_begin() const
const OutRecordCollection & getOutRecords() const
OutRecordCollection::iterator getOutRecord(const Face &face)
Get the out-record for face.
void deleteOutRecord(const Face &face)
Delete the out-record for face if it exists.
std::list< OutRecord > OutRecordCollection
An unordered collection of out-records.
std::list< InRecord > InRecordCollection
An unordered collection of in-records.