NLSR: Named Data Link State Routing Protocol 24.08 documentation
routing-table-pool-entry.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
21
#include "
routing-table-pool-entry.hpp
"
22
#include "
name-prefix-table-entry.hpp
"
23
24
namespace
nlsr
{
25
26
std::ostream&
27
operator<<
(std::ostream& os,
RoutingTablePoolEntry
& rtpe)
28
{
29
os <<
"RoutingTablePoolEntry("
30
<<
"Destination router: "
<< rtpe.
getDestination
()
31
<<
"Next hop list: "
;
32
for
(
const
auto
& nh : rtpe.
getNexthopList
()) {
33
os << nh;
34
}
35
os <<
"NamePrefixTableEntries using this entry:"
;
36
for
(
const
auto
& entryPtr : rtpe.
namePrefixTableEntries
) {
37
os << entryPtr.first <<
":"
;
38
}
39
40
return
os;
41
}
42
43
bool
44
operator==
(
const
RoutingTablePoolEntry
& lhs,
const
RoutingTablePoolEntry
& rhs)
45
{
46
return
(lhs.
getDestination
() == rhs.
getDestination
() &&
47
lhs.
getNexthopList
() == rhs.
getNexthopList
());
48
}
49
50
}
// namespace nlsr
nlsr::RoutingTableEntry::getDestination
const ndn::Name & getDestination() const
Definition:
routing-table-entry.hpp:59
nlsr::RoutingTableEntry::getNexthopList
NexthopList & getNexthopList()
Definition:
routing-table-entry.hpp:65
nlsr::RoutingTablePoolEntry
Definition:
routing-table-pool-entry.hpp:49
nlsr::RoutingTablePoolEntry::namePrefixTableEntries
std::unordered_map< ndn::Name, std::weak_ptr< NamePrefixTableEntry > > namePrefixTableEntries
Definition:
routing-table-pool-entry.hpp:100
name-prefix-table-entry.hpp
nlsr
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
Definition:
adjacency-list.cpp:27
nlsr::operator<<
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
Definition:
adjacent.cpp:176
nlsr::operator==
bool operator==(const NamePrefixTableEntry &lhs, const NamePrefixTableEntry &rhs)
Definition:
name-prefix-table-entry.cpp:80
routing-table-pool-entry.hpp
src
route
routing-table-pool-entry.cpp
Generated by
1.9.1