33 : m_interest(interest.shared_from_this())
34 , m_nameTreeEntry(nullptr)
41 return std::find_if(m_inRecords.begin(), m_inRecords.end(),
42 [&face] (
const InRecord& inRecord) {
return &inRecord.getFace() == &face; });
48 auto it = std::find_if(m_inRecords.begin(), m_inRecords.end(),
49 [&face] (
const InRecord& inRecord) {
return &inRecord.getFace() == &face; });
50 if (it == m_inRecords.end()) {
51 m_inRecords.emplace_front(face);
52 it = m_inRecords.begin();
62 auto it = std::find_if(m_inRecords.begin(), m_inRecords.end(),
63 [&face] (
const InRecord& inRecord) {
return &inRecord.getFace() == &face; });
64 if (it != m_inRecords.end()) {
65 m_inRecords.erase(it);
78 return std::find_if(m_outRecords.begin(), m_outRecords.end(),
79 [&face] (
const OutRecord& outRecord) {
return &outRecord.getFace() == &face; });
85 auto it = std::find_if(m_outRecords.begin(), m_outRecords.end(),
86 [&face] (
const OutRecord& outRecord) {
return &outRecord.getFace() == &face; });
87 if (it == m_outRecords.end()) {
88 m_outRecords.emplace_front(face);
89 it = m_outRecords.begin();
99 auto it = std::find_if(m_outRecords.begin(), m_outRecords.end(),
100 [&face] (
const OutRecord& outRecord) {
return &outRecord.getFace() == &face; });
101 if (it != m_outRecords.end()) {
102 m_outRecords.erase(it);
void deleteInRecord(const Face &face)
delete the in-record for face if it exists
OutRecordCollection::iterator getOutRecord(const Face &face)
get the out-record for face
contains information about an Interest toward an outgoing face
void deleteOutRecord(const Face &face)
delete the out-record for face if it exists
InRecordCollection::iterator insertOrUpdateInRecord(Face &face, const Interest &interest)
insert or update an in-record
Table::const_iterator iterator
void clearInRecords()
delete all in-records
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
contains information about an Interest from an incoming face
OutRecordCollection::iterator insertOrUpdateOutRecord(Face &face, const Interest &interest)
insert or update an out-record
Entry(const Interest &interest)
InRecordCollection::iterator getInRecord(const Face &face)
get the in-record for face