[ndnSIM] How to get erased item of Content Store

Maziar m.mirzazad at gmail.com
Wed Jul 2 13:21:26 PDT 2014

Hi Alex,

Thanks for the reply,
But this does not work, I have tried many other too.
Could you please tell the exact code?
I know this is because of lack of my knowledge about boost lists.


On 07/01/2014 09:16 PM, Alex Afanasyev wrote:
> Hi Maziar,
> Just before the item is erased, you should do something like this:
> std::cout << policy_container::begin()->payload()->GetName() << std::endl;
> ---
> Alex
> On Jul 1, 2014, at 7:35 PM, Maziar <m.mirzazad at gmail.com> wrote:
>> Hi,
>> I am trying to get the prefix of the item which has been replaced in content store.
>> What I know so far is that the below command does erasing:
>> base_.erase (&(*policy_container::begin ()));
>> But I can not retrieve the prefix of the item from policy_container::begin ().
>> I would appreciate if you help me.
>> Thanks
>> Maz

More information about the ndnSIM mailing list