33 std::multimap<size_t, const name_tree::Entry*> maybeEmptyNtes;
38 if (fibEntry !=
nullptr) {
42 for (
const auto& pitEntry : nte.getPitEntries()) {
46 if (!nte.hasTableEntries()) {
47 maybeEmptyNtes.emplace(nte.getName().size(), &nte);
52 for (
auto i = maybeEmptyNtes.rbegin(); i != maybeEmptyNtes.rend(); ++i) {
56 BOOST_ASSERT(nt.
size() == 0 ||
generalization of a network interface
Represents the Forwarding Information Base (FIB)
RemoveNextHopResult removeNextHop(Entry &entry, const Face &face)
Remove the NextHop record for face from entry.
An entry in the name tree.
A common index structure for FIB, PIT, StrategyChoice, and Measurements.
const_iterator end() const
size_t eraseIfEmpty(Entry *entry, bool canEraseAncestors=true)
Delete the entry if it is empty.
const_iterator begin() const
Represents the Interest Table.
void deleteInOutRecords(Entry *entry, const Face &face)
Deletes in-records and out-records for face.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...
void cleanupOnFaceRemoval(NameTree &nt, Fib &fib, Pit &pit, const Face &face)
cleanup tables when a face is destroyed