route/nexthop.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
23 #include "nexthop.hpp"
24 
25 namespace nlsr {
26 
27 bool
28 operator==(const NextHop& lhs, const NextHop& rhs)
29 {
31  &&
33 }
34 
35 std::ostream&
36 operator<<(std::ostream& os, const NextHop& hop)
37 {
38  os << "Nexthop("
39  << "face-uri: " << hop.getConnectingFaceUri()
40  << ", cost: " << hop.getRouteCost() << ")";
41 
42  return os;
43 }
44 
45 } // namespace nlsr
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
Definition: adjacent.cpp:99
bool operator==(const NamePrefixTableEntry &lhs, const NamePrefixTableEntry &rhs)
const std::string & getConnectingFaceUri() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
uint64_t getRouteCostAsAdjustedInteger() const
double getRouteCost() const