Files
NFD/daemon/table/fib-nexthop.cpp
T
Alexander Afanasyev 18bbf81601 src: Changing namespace ndn to namespace nfd
Also, this commit imports used classes from ::ndn namespace (from
NDN-CPP library) directly to ::nfd namespace.

refs: #1163

Change-Id: I9cc9d72e00af495b4ed0c84e6d418a7c9ba986cb
2014-01-29 14:12:58 -08:00

42 lines
626 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "fib-nexthop.hpp"
namespace nfd {
namespace fib {
NextHop::NextHop(shared_ptr<Face> face)
: m_face(face), m_cost(0)
{
}
NextHop::NextHop(const NextHop& other)
: m_face(other.m_face), m_cost(other.m_cost)
{
}
shared_ptr<Face>
NextHop::getFace() const
{
return m_face;
}
void
NextHop::setCost(int32_t cost)
{
m_cost = cost;
}
int32_t
NextHop::getCost() const
{
return m_cost;
}
} // namespace fib
} // namespace nfd