NLSR - Named Data Link State Routing Protocol 0.4.1 documentation
Main Page
Namespaces
Data Structures
Files
File List
Globals
route/routing-table-entry.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NLSR_ROUTING_TABLE_ENTRY_HPP
23
#define NLSR_ROUTING_TABLE_ENTRY_HPP
24
25
#include "
nexthop-list.hpp
"
26
27
#include <iostream>
28
#include <ndn-cxx/name.hpp>
29
30
namespace
nlsr
{
31
32
class
RoutingTableEntry
33
{
34
public
:
35
RoutingTableEntry
()
36
{
37
}
38
39
~RoutingTableEntry
()
40
{
41
}
42
43
RoutingTableEntry
(
const
ndn::Name& dest)
44
{
45
m_destination
= dest;
46
}
47
48
const
ndn::Name&
49
getDestination
()
const
50
{
51
return
m_destination
;
52
}
53
54
NexthopList
&
55
getNexthopList
()
56
{
57
return
m_nexthopList
;
58
}
59
60
const
NexthopList
&
61
getNexthopList
()
const
62
{
63
return
m_nexthopList
;
64
}
65
66
inline
bool
67
operator==
(
RoutingTableEntry
& rhs)
68
{
69
return
((*this).getDestination() == rhs.
getDestination
()
70
&&
71
(*this).getNexthopList() == rhs.
getNexthopList
());
72
}
73
74
protected
:
75
ndn::Name
m_destination
;
76
NexthopList
m_nexthopList
;
77
};
78
79
std::ostream&
80
operator<<
(std::ostream& os,
const
RoutingTableEntry
& rte);
81
82
}
// namespace nlsr
83
84
#endif // NLSR_ROUTING_TABLE_ENTRY_HPP
nlsr::RoutingTableEntry::getNexthopList
NexthopList & getNexthopList()
Definition:
route/routing-table-entry.hpp:55
nlsr::RoutingTableEntry::RoutingTableEntry
RoutingTableEntry()
Definition:
route/routing-table-entry.hpp:35
nlsr::operator<<
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
Definition:
adjacent.cpp:83
nlsr::RoutingTableEntry::m_nexthopList
NexthopList m_nexthopList
Definition:
route/routing-table-entry.hpp:76
nlsr::RoutingTableEntry::m_destination
ndn::Name m_destination
Definition:
route/routing-table-entry.hpp:75
nlsr::RoutingTableEntry::getDestination
const ndn::Name & getDestination() const
Definition:
route/routing-table-entry.hpp:49
nlsr::RoutingTableEntry::RoutingTableEntry
RoutingTableEntry(const ndn::Name &dest)
Definition:
route/routing-table-entry.hpp:43
nlsr::RoutingTableEntry::~RoutingTableEntry
~RoutingTableEntry()
Definition:
route/routing-table-entry.hpp:39
nexthop-list.hpp
nlsr::RoutingTableEntry
Definition:
route/routing-table-entry.hpp:32
nlsr
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
Definition:
adjacency-list.cpp:30
nlsr::NexthopList
Definition:
nexthop-list.hpp:49
nlsr::RoutingTableEntry::getNexthopList
const NexthopList & getNexthopList() const
Definition:
route/routing-table-entry.hpp:61
nlsr::RoutingTableEntry::operator==
bool operator==(RoutingTableEntry &rhs)
Definition:
route/routing-table-entry.hpp:67
src
route
routing-table-entry.hpp
Generated on Fri Feb 23 2018 07:49:02 for NLSR - Named Data Link State Routing Protocol by
1.8.11