Project

General

Profile

Task #1315

FIB enumeration

Added by Junxiao Shi over 6 years ago. Updated over 6 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

Blocks NFD - Task #1192: FIB enumeration commandClosed

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

Actions
#1

Updated by Tian Song over 6 years ago

  • Status changed from New to In Progress
#2

Updated by Tian Song over 6 years ago

  • % Done changed from 0 to 50
#3

Updated by Junxiao Shi over 6 years ago

  • Description updated (diff)
#4

Updated by Tian Song over 6 years ago

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

Updated by Junxiao Shi over 6 years ago

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

Also available in: Atom PDF