[ndnSIM] how to iterate over all elements of cs

Zeinab Rezaiefar z.rezaiefar at yahoo.com
Tue Mar 8 16:32:11 PST 2016

 hello Carlz,in ndnsim version you can access content store data ( for example in ndn-forwarding-strategy.cc function) as bellows. maybe it will be the same for version 2   Ptr<ContentStore> m_contentStore;Ptr<cs::Entry> csEntry=m_contentStore->Begin() while ( csEntry !=m_contentStore->End()){
std::cout<<"the name of data in cache";
Hope it will work for youregards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160309/3483b92e/attachment.html>

More information about the ndnSIM mailing list