20 #ifndef NLSR_NEXTHOP_HPP 21 #define NLSR_NEXTHOP_HPP 27 #include <boost/cstdint.hpp> 34 : m_connectingFaceUri()
36 , m_isHyperbolic(false)
40 NextHop(
const std::string& cfu,
double rc)
41 : m_isHyperbolic(false)
43 m_connectingFaceUri = cfu;
50 return m_connectingFaceUri;
56 m_connectingFaceUri = cfu;
66 return static_cast<uint64_t
>(round(m_routeCost*HYPERBOLIC_COST_ADJUSTMENT_FACTOR));
69 return static_cast<uint64_t
>(m_routeCost);
94 return m_isHyperbolic;
98 std::string m_connectingFaceUri;
113 static const uint64_t HYPERBOLIC_COST_ADJUSTMENT_FACTOR = 1000;
124 #endif //NLSR_NEXTHOP_HPP
std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator==(const NamePrefixTableEntry &lhs, const NamePrefixTableEntry &rhs)
NextHop(const std::string &cfu, double rc)
void setRouteCost(const double rc)
const std::string & getConnectingFaceUri() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
bool isHyperbolic() const
void setConnectingFaceUri(const std::string &cfu)
void setHyperbolic(bool b)
uint64_t getRouteCostAsAdjustedInteger() const
double getRouteCost() const