[ndnSIM] How To Traverse All Faces in Forwarder
Alex Afanasyev
aa at cs.fiu.edu
Tue Mar 6 06:06:07 PST 2018
You could use c++ range for
for (const auto& item : this->getFaceTable()) {
// ...
}
> On Mar 6, 2018, at 7:35 AM, cjb0725 at mail.ustc.edu.cn <mailto:cjb0725 at mail.ustc.edu.cn> wrote:
>
> Dear all,
> I want to get all faces in NFD forwarder. Does anyone know how to traverse all faces in forwarder?
> I got an iterator using line below, but it seems like an unusual one , don't know how to use it.
>
> FaceTable::const_iterator it = this->getFaceTable().begin();
>
> Thanks,
> Chen
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
______________
Alex Afanasyev
Assistant Professor, SCIS, Florida International University
11200 SW 8th Street, ECS Room 261B, Miami, FL 33199
phone: +1.305.348.4960 (office); email: aa at cs.fiu.edu <mailto:aa at cs.fiu.edu>
web: https://users.cs.fiu.edu/~afanasyev/ <https://users.cs.fiu.edu/~afanasyev/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180306/00df27f6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 873 bytes
Desc: Message signed with OpenPGP
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180306/00df27f6/attachment-0001.sig>
More information about the ndnSIM
mailing list