NLSR - Named Data Link State Routing Protocol 0.4.0 documentation
Main Page
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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
&&
48
lhs.
getNexthopList
() == rhs.
getNexthopList
());
49
}
50
51
}
// namespace nlsr
nlsr::RoutingTableEntry::getNexthopList
NexthopList & getNexthopList()
Definition:
routing-table-entry.hpp:55
nlsr::operator<<
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
Definition:
adjacent.cpp:83
nlsr::operator==
bool operator==(const NamePrefixTableEntry &lhs, const NamePrefixTableEntry &rhs)
Definition:
name-prefix-table-entry.cpp:94
nlsr::RoutingTablePoolEntry
Definition:
routing-table-pool-entry.hpp:49
routing-table-pool-entry.hpp
nlsr::RoutingTableEntry::getDestination
const ndn::Name & getDestination() const
Definition:
routing-table-entry.hpp:49
nlsr
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
Definition:
adjacency-list.cpp:30
name-prefix-table-entry.hpp
nlsr::RoutingTablePoolEntry::namePrefixTableEntries
std::unordered_map< ndn::Name, std::weak_ptr< NamePrefixTableEntry > > namePrefixTableEntries
Definition:
routing-table-pool-entry.hpp:108
var
lib
ndn-docs
NLSR
src
route
routing-table-pool-entry.cpp
Generated on Sun Jun 16 2019 01:04:15 for NLSR - Named Data Link State Routing Protocol by
1.8.11