[ndnSIM] How can I print the InRecords out?

RuntongChen runtongchen at csu.edu.cn
Tue Nov 8 06:21:10 PST 2016

Hi Spyridon,

Thanks for your answer very much.With the help of "const nfd::Pit::const_iterator iterator = pit.begin();",I can print the Name out.And the code is "std::cout << (*iterator).getName()<<"\n";".But I meet two questions now.The first one is why I can't use "std::cout << (*iterator).getInRecords()<<"\n";" to print InRecords out?And the error is"cannot bind 'std::ostream {aka std::basic_ostream<char>}' Lvalue to 'std::basic_ostream<char>&&'".If I can't do like this.What should I do?The second one is that I find there has no member of 'next' in 'nfd::Pit'.So if I want to iterator the pit::entry,what should I do to let the iterator goes to the next?

I am thankful for your guidance and support.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161108/ee6f0347/attachment.html>

More information about the ndnSIM mailing list