NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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>&
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
51 {
52  return m_cost;
53 }
54 
55 } // namespace fib
56 } // namespace nfd
uint64_t getCost() const
Definition: fib-nexthop.cpp:50
NextHop(shared_ptr< Face > face)
Definition: fib-nexthop.cpp:31
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
const shared_ptr< Face > & getFace() const
Definition: fib-nexthop.cpp:38
void setCost(uint64_t cost)
Definition: fib-nexthop.cpp:44