<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi John,<div class=""><br class=""></div><div class="">I would suggest you either use the NS3 logging statements (e.g., NS_LOG_FUNCTION, <span style="color: rgb(121, 93, 163); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">NS_LOG_INFO</span>) or the cerr to print out the contents of the CS.</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 Dec 9, 2016, at 7:51 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">ndnSIM friends,<div class=""><br class=""></div><div class="">At what point is it appropriate to print the contents of the CS?</div><div class=""><br class=""></div><div class="">I've tried putting some code to print its contents using iterators (e.g., <br class=""><br class="">for(auto it = theCS.begin(); it != theCS.end(); ++it)<br class="">{<br class="">    cout<<it->getName()<<endl;<br class="">}</div><div class=""><br class=""></div><div class="">But this doesn't appear to do anything.  I'm currently putting the code after Simulation::Run() and before Simulation::Destroy();</div><div class=""><br class=""></div><div class="">Is there somewhere else I should be putting it?  I assumed it would print out all the remaining entries by the time the simulation was done running.  I was apparently wrong.</div><div class=""><br class=""></div><div class="">Note:  I'm not doing anything special in my custom Policy (e.g., I'm not tracking a secondary table of contents yet.)  - but does this even have anything to do with it?  I assume that items are put in the content store regardless.</div><div class=""><br class=""></div><div class="">Ideas?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">John</div></div><br class=""></div></blockquote></div><br class=""></div></body></html>