[ndnSIM] About extracting the name of data in Queue of ndnSIM

Alex Afanasyev aa at CS.UCLA.EDU
Thu Mar 30 05:27:17 PDT 2017


It is defined in cs-internal.hpp.  iterator is a typedef for std::set<EntryImpl>::iterator, and EntryImpl is subclass of cs::Entry.

You should be able to just `yourIterator->getName();`

--
Alex

> On Mar 30, 2017, at 2:25 AM, 何晓春 <hexiaochun at bupt.edu.cn> wrote:
> 
> Dear Sir/Madam,
> 
> 
> 
> I'm a senior student in China. Recently, I want to extract the cached name of the nfd::cs::lru::Queue with sequenced  index in order to match Interest. But I can't figure out the type of thing which the iterator of Queue points to .
> 
> 
> 
> In a word , I can't figure out the struct of the things which is storaged in the Queue.
> 
> 
> 
> PS:
> 
> 1.The definition of Queue:
> 
> typedef boost::multi_index_container<
>      iterator,
>      boost::multi_index::indexed_by<
>          boost::multi_index::sequenced<>,
>          boost::multi_index::ordered_unique<
>              boost::multi_index::identity<iterator>, EntryItComparator
>          >
>      >
>   > Queue
> 
> 2.file
> 
> ..../ndnSIM/ns-3/build/ns3/ndnSIM/NFD/daemon/table/cs-policy-lru.hpp
> 
> ..../ndnSIM/ns-3/src/ndnSIM/NFD/daemon/table/cs-policy-lru.cpp
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170330/a1083c79/attachment.html>


More information about the ndnSIM mailing list