NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
fib-nexthop.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
fib-nexthop.hpp
"
27
28
namespace
nfd {
29
namespace
fib {
30
31
NextHop::NextHop
(shared_ptr<Face> face)
32
: m_face(face)
33
, m_cost(0)
34
{
35
}
36
37
const
shared_ptr<Face>&
38
NextHop::getFace
()
const
39
{
40
return
m_face;
41
}
42
43
void
44
NextHop::setCost
(uint64_t cost)
45
{
46
m_cost = cost;
47
}
48
49
uint64_t
50
NextHop::getCost
()
const
51
{
52
return
m_cost;
53
}
54
55
}
// namespace fib
56
}
// namespace nfd
nfd::fib::NextHop::getCost
uint64_t getCost() const
Definition:
fib-nexthop.cpp:50
nfd::fib::NextHop::NextHop
NextHop(shared_ptr< Face > face)
Definition:
fib-nexthop.cpp:31
fib-nexthop.hpp
nfd::fib::NextHop::setCost
void setCost(uint64_t cost)
Definition:
fib-nexthop.cpp:44
nfd::fib::NextHop::getFace
const shared_ptr< Face > & getFace() const
Definition:
fib-nexthop.cpp:38
ndnSIM
NFD
daemon
table
fib-nexthop.cpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7