[ndnSIM] About entries of m_queue???
Alex Afanasyev
alexander.afanasyev at ucla.edu
Sun Dec 1 12:02:32 PST 2013
Hi Dalbert,
I'm guessing your question is about https://github.com/cawka/ndnSIM-nom-rapid-car2car scenario.
As you copied here, ItemQueue is just a typedef of the STL's list container, so the standard iterator-based loop will give you access to all entries, which you can print:
for (ItemQueue::iterator it = m_queue.begin(); it != m_queue.end(); it++)
{
std::cout << *(it->m_name) << std::endl;
}
---
Alex
On Dec 1, 2013, at 6:00 AM, Dalbert M <dalbertmm at yahoo.com.br> wrote:
> Hiho,
>
> How should be the best way to print de entries of :
>
> ItemQueue m_queue; ???
>
>
> Knowing that the definition of ItemQueue is :
>
> typedef std::list<Item> ItemQueue;
>
>
> Best Regards
>
> Dalbert
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20131201/c6e0b4fe/attachment.html>
More information about the ndnSIM
mailing list