22 #ifndef NLSR_NAME_PREFIX_TABLE_HPP 23 #define NLSR_NAME_PREFIX_TABLE_HPP 31 #include <unordered_map> 40 std::unordered_map<ndn::Name, std::shared_ptr<RoutingTablePoolEntry>>;
41 using NptEntryList = std::list<std::shared_ptr<NamePrefixTableEntry>>;
62 addEntry(
const ndn::Name& name,
const ndn::Name& destRouter);
76 removeEntry(
const ndn::Name& name,
const ndn::Name& destRouter);
98 std::shared_ptr<RoutingTablePoolEntry>
128 ndn::util::signal::Connection m_afterRoutingChangeConnection;
134 return m_table.begin();
140 return m_table.end();
148 #endif // NLSR_NAME_PREFIX_TABLE_HPP
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
std::shared_ptr< RoutingTablePoolEntry > addRtpeToPool(RoutingTablePoolEntry &rtpe)
Adds a pool entry to the pool.
void deleteRtpeFromPool(std::shared_ptr< RoutingTablePoolEntry > rtpePtr)
Removes a pool entry from the pool.
void updateWithNewRoute(const std::list< RoutingTableEntry > &entries)
Updates all routing information in the NPT.
void removeEntry(const ndn::Name &name, const ndn::Name &destRouter)
Removes a destination from a name prefix table entry.
NptEntryList::const_iterator const_iterator
const_iterator end() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const_iterator begin() const
std::list< std::shared_ptr< NamePrefixTableEntry >> NptEntryList
NamePrefixTable(Nlsr &nlsr, std::unique_ptr< AfterRoutingChange > &afterRoutingChangeSignal)
std::unordered_map< ndn::Name, std::shared_ptr< RoutingTablePoolEntry >> RoutingTableEntryPool
void addEntry(const ndn::Name &name, const ndn::Name &destRouter)
Adds a destination to the specified name prefix.