<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="">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).</div><div class=""><br class=""></div><div class="">Hope that this helps,</div><div class=""><br 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 5, 2016, at 4:47 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=""><font face="宋体" class="">Hello,</font></p><p class="">Thanks very much for your quick and patient answer both of <span style="float: none; display: inline !important;" class="">Spyridon </span>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? </p><p class=""><i class="">Looking forward to your response.</i></p><p class=""><em class="">Yours,</em></p><p class=""><em class="">Runtong</em></p></div></blockquote></div><br class=""></div></body></html>