<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">thank you for quick respond and explanation, I will try to look at the code that you refer before, and implement it.<br><br>If you don't mind, maybe I will ask more often later on.<br> <br>Best Regards,<br>Adi Paramartha<br><br><hr id="zwchr" data-marker=""><div data-marker=""><b>From: </b>"Junxiao Shi" <shijunxiao@email.arizona.edu><br><b>To: </b>mdparamartha95@students.itb.ac.id<br><b>Cc: </b>"ndnsim" <ndnsim@lists.cs.ucla.edu><br><b>Sent: </b>Sunday, February 24, 2019 7:21:17 PM<br><b>Subject: </b>Re: [ndnSIM] Implement new Replacement Policy on NFD<br></div><br><div data-marker=""><div><div dir="auto">Hi</div></div><div dir="auto"><br></div><div dir="auto">CS contains Data, not Interest.</div><div dir="auto"><br></div><div dir="auto">To associate auxiliary information with each entry, you can make a std::map with cs::iterator as key type and your “value” as mapped type.</div><div dir="auto">Example: priority-fifo policy’s EntryInfoMapFifo struct.</div><div dir="auto"><br></div><div><div dir="auto">Yours, Junxiao</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 24, 2019 at 05:50 <<a href="mailto:mdparamartha95@students.itb.ac.id" target="_blank">mdparamartha95@students.itb.ac.id</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello everybody, </div><br><div>Currently, I'm doing research to implement a new replacement policy in NdnSim,</div><br><div>I'm trying to modify the cs-policy-lru.cpp and .hpp as well.</div><br><div>But I little bit confused about the C language that NFD used,</div><br><div>in LRU(cs-policy-lru.cpp) the policy only move the referenced interest to the end,</div><br><div>How can I add value for each interest? Like implementing an LFU replacement policy where each interest has its own frequency.</div><br></div></div>
</blockquote></div></div><br></div></div></body></html>