Project

General

Profile

Actions

Task #1315

closed

FIB enumeration

Added by Junxiao Shi almost 11 years ago. Updated almost 11 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 #1

Updated by Tian Song almost 11 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Tian Song almost 11 years ago

  • % Done changed from 0 to 50
Actions #3

Updated by Junxiao Shi almost 11 years ago

  • Description updated (diff)
Actions #4

Updated by Tian Song almost 11 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 50 to 70
Actions #5

Updated by Junxiao Shi almost 11 years ago

  • Status changed from Code review to Closed
  • % Done changed from 70 to 100
Actions

Also available in: Atom PDF