Task #5308
openCode cleanup in LSA and routing table related types
60%
Updated by Junxiao Shi 11 months ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Updated by Junxiao Shi 10 months ago
- % Done changed from 30 to 40
https://gerrit.named-data.net/c/NLSR/+/7322 Map
I plan to rename this type to NameMap
in upcoming changes, to better reflect what it does.
Updated by Junxiao Shi 9 months ago
- % Done changed from 40 to 50
https://gerrit.named-data.net/c/NLSR/+/7377 rename Map
to NameMap
Updated by Junxiao Shi 9 months ago
- % Done changed from 50 to 60
https://gerrit.named-data.net/c/NLSR/+/7393 reduces the API surface of link-state calculator and hyperbolic calculator to a free function each.
This ensures external callers, including unit tests, do not rely on the class structures.
https://gerrit.named-data.net/c/NLSR/+/7396 fixes a bug in link-state calculator.
The test suite is adjusted so that each test can build the topology with desired LSAs, instead of modifying the LSDB after it's populated.
In upcoming changes for the calculators, I plan to adopt resource acquisition is initialization pattern (instead of new
+ delete
) and use Boost-provided data structures where feasible.
I also plan to eliminate the big classes in favor of simpler functions or smaller classes.
The test suite would not be touched in those changes.