[ndnSIM] pit::Entry has no member named 'getName'?

Alex Afanasyev aa at CS.UCLA.EDU
Sun Aug 14 13:55:21 PDT 2016


> On Aug 14, 2016, at 6:33 AM, Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com> wrote:
> 
> Hi,
> In Forwarder::onContentStoreMiss I want to track pit entry and it's Link(if exists) but having called it on NFD_LOG_DEBUG with pitEntry.getName() or pitEntry.getInterest.getName(), pitEntry.getInterest.getLink() compiler says:
> 
> class std::shared_ptr<nfd::pit::Entry> has no member named 'getName'
> Similar to what compiler says about getInterest. Well

std::shared_ptr<nfd::pit::Entry> doesn't have getName, as by .getName() you're trying to get a method of the shared pointer.  Try using ->getInterest and ->getName() instead.

---
Alex

> What is it I've missed?
> 
> Thanks,
> Sabet
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160814/96ba576e/attachment.bin>


More information about the ndnSIM mailing list