#include <map.hpp>
Definition at line 61 of file map.hpp.
◆ Map()
◆ addEntry()
void nlsr::Map::addEntry |
( |
const ndn::Name & |
rtrName | ) |
|
Add a map entry to this map.
- Parameters
-
rtrName | The name of the router. |
Adds a router to this map. Each entry is also given an arbitrary, ascending mappingNo (mapping number).
Definition at line 33 of file map.cpp.
◆ createFromAdjLsdb()
template<typename IteratorType >
void nlsr::Map::createFromAdjLsdb |
( |
IteratorType |
begin, |
|
|
IteratorType |
end |
|
) |
| |
|
inline |
Populates the Map with AdjacencyLsas.
- Note
- IteratorType must an iterator type, and begin to end must represent a valid range.
Definition at line 84 of file map.hpp.
◆ createFromCoordinateLsdb()
template<typename IteratorType >
void nlsr::Map::createFromCoordinateLsdb |
( |
IteratorType |
begin, |
|
|
IteratorType |
end |
|
) |
| |
|
inline |
Populates the Map with CoordinateLsas.
- Note
- IteratorType must an iterator type, and begin to end must represent a valid range.
Definition at line 102 of file map.hpp.
◆ getMappingNoByRouterName()
std::optional< int32_t > nlsr::Map::getMappingNoByRouterName |
( |
const ndn::Name & |
rName | ) |
|
◆ getMapSize()
size_t nlsr::Map::getMapSize |
( |
| ) |
const |
|
inline |
◆ getRouterNameByMappingNo()
std::optional< ndn::Name > nlsr::Map::getRouterNameByMappingNo |
( |
int32_t |
mn | ) |
const |
◆ writeLog()
void nlsr::Map::writeLog |
( |
| ) |
|