[ndnSIM] About entries of m_queue???
Dalbert M
dalbertmm at yahoo.com.br
Sun Dec 1 17:10:51 PST 2013
Hi Alex,
That was exactly what i needed.
Thanks a lot.
Dalbert
Em Domingo, 1 de Dezembro de 2013 18:02, Alex Afanasyev <alexander.afanasyev at ucla.edu> escreveu:
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/5bc91fdd/attachment.html>
More information about the ndnSIM
mailing list