[ndnSIM] Ask the meaning of m_metric

Xuxiang Tian xuxiangtian at ucla.edu
Wed Aug 10 15:10:13 PDT 2016


Hi all,

I'm updating ndnSIM.

In boost-graph-ndn-global-routing-helper.hpp of NFD 0.3.4, there is

inline property_traits<EdgeWeights>::reference
get(const boost::EdgeWeights&, ns3::ndn::GlobalRouter::Incidency& edge)
{
  if (std::get<1>(edge) == 0)
    return property_traits<EdgeWeights>::reference(nullptr, 0, 0.0);
  else {
    return property_traits<EdgeWeights>::reference(std::get<1>(edge),
                                                   static_cast<uint16_t>(

 std::get<1>(edge)->getMetric()),
                                                   0.0);
  }
}

where getMetric() returns m_metric, which seems is either 1 or 0 and is no
longer exists in NFD 0.4.2.
Could you please tell me what m_metric works for

--
Xuxiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160810/a90b8bd4/attachment.html>


More information about the ndnSIM mailing list