Project

General

Profile

Task #4110

Replace RoutingTableEntry with a tuple

Added by Nicholas Gordon over 4 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Start date:
05/31/2017
Due date:
% Done:

0%

Estimated time:

Description

Currently, the RoutingTable stores entries as a class, RoutingTableEntry. All this does is provide getters and setters, and define equality. A tuple provides equality comparison by element-wise comparison, which is exactly how RoutingTableEntry currently implements it.

Separating this data container into a class suggests that it has some kind of behavior or state modification. However, it is only a data container, so a POD is more appropriate. A tuple is better than a struct in this situation because C++11 provides a built-in operator== for tuples, but not structs.

#1

Updated by Nicholas Gordon about 4 years ago

  • Assignee set to Laqin Fan
#2

Updated by Nicholas Gordon almost 4 years ago

  • Target version changed from v0.4.0 to v0.5.0
#3

Updated by Nicholas Gordon over 3 years ago

  • Target version changed from v0.5.0 to Minor release 0.4.1
#4

Updated by Ashlesh Gawande over 3 years ago

  • Target version changed from Minor release 0.4.1 to v0.5.0
#5

Updated by Saurab Dulal over 2 years ago

  • Target version changed from v0.5.0 to Minor release v0.5.1
#6

Updated by Saurab Dulal over 2 years ago

  • Target version changed from Minor release v0.5.1 to v0.6.0
#7

Updated by Saurab Dulal 9 months ago

  • Target version changed from v0.6.0 to Minor Release v0.6.1

Also available in: Atom PDF