[ndnSIM] How can I get ino "nfd::pit::Entry"

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Sun Nov 6 17:23:26 PST 2016


the PIT class does not have a getName method. An entry of PIT has a getName method. You can use the iterators to access the entries of PIT (or/and std::find if you want). When you actually get a PIT entry, you can apply the getName method to it (or the methods to get the InRecords and OutRecords).

Hope that this helps,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department

> On Nov 5, 2016, at 4:47 AM, RuntongChen <runtongchen at csu.edu.cn> wrote:
> Hello,
> Thanks very much for your quick and patient answer both of Spyridon and Junxiao.Based on your guidances,I can get the size of PIT already.But,What I really want is the Name,InRecords and OutRecords.And I find that they are in "nfd::pit::Entry" but not in "nfd::Pit".So,if I follow your advices and call the code of "pit.getName()".Then,The computer will give me the error :"const class nfd::Pit has no number named 'getName'".So,I'd like to know how can I get into "nfd::pit::Entry"and print the "Name" out? 
> Looking forward to your response.
> Yours,
> Runtong

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

More information about the ndnSIM mailing list