[ndnSIM] Policy question (cleanup index, beforeEvict signal, etc.)
shijunxiao at email.arizona.edu
Sat Jun 3 16:20:10 PDT 2017
> 1. *What exactly is meant by "cleanup index"? *
> - 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?
> Cleanup index refers to any indexing data structured used by a cs::Policy
to determine which CS entry should be evicted.
For example, cs::PriorityFifoPolicy::m_queues
is the cleanup index for that policy.
> 1. *By the beforeEvict signal being emitted from the iterator, does
> this actually cause the CS do remove the specified data item with the given
> * - this->emitSignal
> i); *
Yes. See this lambda
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM