Project

General

Profile

Actions

Task #1202

closed

shortcuts between FIB, PIT, Measurements, StrategyChoice

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

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

100%

Estimated time:
6.00 h

Description

Add shortcuts between conceptual tables backed by NameTree.

API

  • Fib::findLongestPrefixMatch(const pit::Entry&)
  • Fib::findLongestPrefixMatch(const measurements::Entry&)
  • StrategyChoice::findEffectiveStrategy(const pit::Entry&)
  • Measurements::get(const pit:*Entry&)

Design

  • xx::Entry needs to declare in "private:" section:

    shared_ptr<name_tree::Entry> m_nameTreeEntry;
    friend class NameTree;
    friend class name_tree::Entry;
    
  • name_tree::Entry methods should set m_nameTreeEntry member when xx::Entry is attached, and unset when xx::Entry is detached (don’t forget to unset on the old attached xx::Entry when attaching a new FIB/Measurements/StrategyChoice entry)

  • NameTree::get(const xx::Entry&) const returns m_nameTreeEntry. This is called by Fib::findLongestPrefixMatch(const pit::Entry&) and other methods, so Fib/etc needn’t be made friends of pit::Entry.

  • Implement Fib::findLongestPrefixMatch overload, etc, by going through the NameTree entries.


Related issues 4 (0 open4 closed)

Blocked by NFD - Task #1190: FIB on NameTreeClosedTian Song

Actions
Blocked by NFD - Task #1194: PIT on NameTreeClosedHaowei Yuan

Actions
Blocked by NFD - Task #1196: Measurements tableClosedTian Song02/17/2014

Actions
Follows NFD - Task #1187: NameTreeClosedHaowei Yuan

Actions
Actions

Also available in: Atom PDF