<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">1) an inRecord is a class that has some certain methods and attributes. Please take a look here to see how you can get the attributes that you want:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/pit-in-record.hpp" class="">https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/pit-in-record.hpp</a></div><div class=""><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/pit-in-record.cpp" class="">https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/pit-in-record.cpp</a></div><div class=""><br class=""></div><div class="">2) You have to iterate through the entries of the PIT. A PIT has multiple entries and you need to move the iterator forward to point to the next entry.</div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Nov 8, 2016, at 6:21 AM, RuntongChen <<a href="mailto:runtongchen@csu.edu.cn" class="">runtongchen@csu.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p class="">Hi Spyridon,</p><p class="">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?</p><pre style="text-transform: none; line-height: normal; text-indent: 0px; letter-spacing: normal; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; word-spacing: 0px; white-space: pre-wrap; widows: 1; -webkit-text-stroke-width: 0px;" class=""><i class="">I am thankful for your guidance and support.</i></pre><pre style="text-transform: none; line-height: normal; text-indent: 0px; letter-spacing: normal; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; word-spacing: 0px; white-space: pre-wrap; widows: 1; -webkit-text-stroke-width: 0px;" class=""><em class="">sincerely,</em></pre><pre style="text-transform: none; line-height: normal; text-indent: 0px; letter-spacing: normal; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; word-spacing: 0px; white-space: pre-wrap; widows: 1; -webkit-text-stroke-width: 0px;" class=""><em class="">Runtong</em></pre></div></blockquote></div><br class=""></div></body></html>