route: rename Map to NameMap
The `Map` type is renamed to `NameMap` to better reflect what it does.
`createFromAdjLsdb` and `createFromCoordinateLsdb` functions are changed
to static functions, to match how they are used in callsites.
Unnecessary shared_ptr usage in `createFromAdjLsdb` is eliminated.
Doxygen of `NameMap` is added or improved.
refs #5308
Change-Id: I05db235efc1c6719f14b96758e3acde7826aabe7
diff --git a/tests/route/test-link-state-calculator.cpp b/tests/route/test-link-state-calculator.cpp
index de1327f..40ed32f 100644
--- a/tests/route/test-link-state-calculator.cpp
+++ b/tests/route/test-link-state-calculator.cpp
@@ -25,7 +25,7 @@
#include "adjacent.hpp"
#include "lsdb.hpp"
#include "nlsr.hpp"
-#include "route/map.hpp"
+#include "route/name-map.hpp"
#include "route/routing-table.hpp"
#include "tests/io-key-chain-fixture.hpp"
@@ -99,7 +99,7 @@
lsdb.installLsa(std::make_shared<AdjLsa>(adjC));
auto lsaRange = lsdb.getLsdbIterator<AdjLsa>();
- map.createFromAdjLsdb(lsaRange.first, lsaRange.second);
+ map = NameMap::createFromAdjLsdb(lsaRange.first, lsaRange.second);
}
public:
@@ -107,7 +107,7 @@
ConfParameter conf;
DummyConfFileProcessor confProcessor;
Nlsr nlsr;
- Map map;
+ NameMap map;
RoutingTable& routingTable;
Lsdb& lsdb;