[ndnSIM] About entries of m_queue???
alexander.afanasyev at ucla.edu
Sun Dec 1 12:02:32 PST 2013
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;
On Dec 1, 2013, at 6:00 AM, Dalbert M <dalbertmm at yahoo.com.br> wrote:
> 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
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM