[ndnSIM] Delete a pitEntry (not so easy as it seems to be)
shijunxiao at email.arizona.EDU
Thu Dec 10 08:40:41 PST 2015
You may invoke Pit::insert again with the same Interest, which would return
the same entry as a shared_ptr<pit::Entry>.
Then you can erase this entry.
On Thu, Dec 10, 2015 at 4:02 AM, Natalya Rozhnova <
rozhnova.natalya at gmail.com> wrote:
> Hi all,
> It's me again. :)
> The task I want to perform is to iterate in the Pit in order to find some
> interesting entries and delete them.
> I just discovered that the Pit iterators return const nfd::pit::Entry& but
> the function erase takes shared_ptr<pit::Entry> as parameter. I can't
> create the shared_ptr with make_shared because the class is protected by
> "noncopyable". So I can't delete the entries I want by iterating in the
> Is there any other way to do it?
> Thanks in advance.
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM