[ndnSIM] getting PIT size?
Alex Afanasyev
aa at CS.UCLA.EDU
Thu Sep 1 21:55:07 PDT 2016
Hi Narges,
There is a slightly different way for that:
auto& pit = (*node)->GetObject<ndn::L3Protocol>()->getForwarder()->getPit();
cout << pit.size();
--
Alex
> On Sep 1, 2016, at 9:27 PM, Narges Mehran <narges.mehran at gmail.com> wrote:
>
> Hello everyone,
>
> I want to get the PIT size at the moment, although I know that it isn't needed to allocate PIT size in NFD. When I run the following code, I get this error, any help?
>
> Ptr<ns3::ndn::nfd::Pit> pit = (*node)->GetObject<ns3::ndn::nfd::Pit>();
> cout << pit->size() << "\t";
>
> ./ns3/ptr.h:710:7: error: ‘class nfd::Pit’ has no member named ‘Ref’
> m_ptr->Ref ();
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160901/b3459d22/attachment.bin>
More information about the ndnSIM
mailing list