22 #ifndef NLSR_NAME_PREFIX_TABLE_ENTRY_HPP 23 #define NLSR_NAME_PREFIX_TABLE_ENTRY_HPP 42 : m_namePrefix(namePrefix)
53 const std::list<std::shared_ptr<RoutingTablePoolEntry>>&
65 if (m_rteList.size() > 0) {
66 for (
auto it = m_rteList.begin(); it != m_rteList.end(); ++it) {
67 (*it)->getNexthopList().reset();
75 return m_rteList.size();
110 ndn::Name m_namePrefix;
113 std::list<std::shared_ptr<RoutingTablePoolEntry>> m_rteList;
129 #endif // NLSR_NAME_PREFIX_TABLE_ENTRY_HPP
const ndn::Name & getNamePrefix() const
void addRoutingTableEntry(std::shared_ptr< RoutingTablePoolEntry > rtpePtr)
Adds a routing entry to this NPT entry.
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator==(const NamePrefixTableEntry &lhs, const NamePrefixTableEntry &rhs)
const std::list< std::shared_ptr< RoutingTablePoolEntry > > & getRteList() const
void resetRteListNextHop()
Resets the next hop lists of all routing table entries that advertise this name prefix.
uint64_t removeRoutingTableEntry(std::shared_ptr< RoutingTablePoolEntry > rtpePtr)
Removes a routing entry from this NPT entry.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
NexthopList & getNexthopList()
NamePrefixTableEntry(const ndn::Name &namePrefix)
void generateNhlfromRteList()
Collect all next-hops that are advertised by this entry's routing entries.