[ndnSIM] Get inserted content name form lru-policy.h

Dhiab Imen dhiabimen at gmail.com
Wed Sep 13 03:24:41 PDT 2017


Dear all,

I'm working with ndnSIM 1.0. I have typed  in insert method of lru-policy.h
:

Ptr<Node> node = item->payload ()->GetContentStore ()->template
GetObject<Node> ();
std::cout << "At \t"<< Simulator::Now().GetSeconds() <<
"\t"<<"ContentObject: " << item->payload ()->GetName () << " has been
inserted to Node# " << node->GetId ()<<std::endl;

I get the following errors only in lru-policy.h. When I typed these lines
in fifo-policy.h or random-policy.h it works. I don't know which is the
problem with lru-policy.h

../src/ndnSIM/model/pit/../../utils/trie/lru-policy.h:100:89: error: ‘class
ns3::ndn::pit::EntryImpl<ns3::ndn::pit::PitImpl<ns3::ndn::
ndnSIM::multi_policy_traits<boost::mpl::vector2<ns3::ndn::ndnSIM::lru_policy_traits,
ns3::ndn::ndnSIM::aggregate_stats_policy_traits> > > >’ has no member named
‘GetName’

../src/ndnSIM/model/pit/../../utils/trie/lru-policy.h:98:61: error: ‘class
ns3::ndn::pit::EntryImpl<ns3::ndn::pit::PitImpl<ns3::ndn::
ndnSIM::multi_policy_traits<boost::mpl::vector2<ns3::ndn::ndnSIM::lru_policy_traits,
ns3::ndn::ndnSIM::aggregate_stats_policy_traits> > > >’ has no member named
‘GetContentStore’

Thank you for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170913/7c411250/attachment.html>


More information about the ndnSIM mailing list