<div dir="ltr">Greetings ndnSIM folks,<div><br></div><div>I have a couple questions just to ensure I'm perfectly clear on the terminology and semantics used in the NFD documentation (and ndnSIM documentation):</div><div><br></div><div>In the NFD documentation for Policy's <b>doAfterInsert </b>method, the following is present:</div><div><font color="#0000ff">"<span style="font-family:Roboto,sans-serif;font-size:14px">invoked after a new entry is created in CS</span></font></div><p style="font-stretch:normal;font-size:14px;line-height:22px;font-family:Roboto,sans-serif"><font color="#0000ff">When overridden in a subclass, a policy implementation should decide whether to accept <code>i</code>. If <code>i</code> is accepted, it should be inserted into a cleanup index. Otherwise, <code>beforeEvict</code> signal should be emitted with <code>i</code> to inform CS to erase the entry. A policy implementation may decide to evict other entries by emitting <code>beforeEvict</code> signal, in order to keep CS size under limit."</font></p><div><ol><li><b>What exactly is meant by "cleanup index"? </b></li><ul><li>Does this mean a data structure so as to track what items are in the content store so that a cache replacement algorithm can be properly applied to the correct items? </li></ul><li><b>By the beforeEvict signal being emitted from the iterator, does this actually cause the CS do remove the specified data item with the given iterator?</b></li></ol><b><ul><ul><li>this-><a class="gmail-code" href="https://ndnsim.net/2.1/doxygen/signal-emit_8hpp.html#a33665abef4d805a760517424509a19c3" style="color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(252,252,252)">emitSignal</a><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;font-weight:normal;white-space:pre-wrap;background-color:rgb(252,252,252)">(</span><a class="gmail-code" href="https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#a442af19fefa3fbe0267471117149c998" style="color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(252,252,252)">beforeEvict</a><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;font-weight:normal;white-space:pre-wrap;background-color:rgb(252,252,252)">, i);</span><br></li></ul></ul></b></div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div>