Project

General

Profile

Actions

Task #1315

closed

FIB enumeration

Added by Junxiao Shi over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tables
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
4.00 h

Description

Allow enumerating FIB entries.

API

class Fib
{
public:
  typedef ... const_iterator; // iterator of shared_ptr<fib::Entry>

  const_iterator begin() const;
  const_iterator end()   const;
};

Usage example:

Fib fib(...);
for (Fib::const_iterator it = fib.begin(); it != fib.end(); ++it) {
  const shared_ptr<fib::Entry>& fibEntry = *it;
  // do something with fibEntry
}

Related issues 2 (0 open2 closed)

Blocks NFD - Task #1192: FIB enumeration commandClosed

Actions
Blocked by NFD - Task #1318: NameTree enumerationClosedHaowei Yuan

Actions
Actions

Also available in: Atom PDF