#include <map.hpp>
Definition at line 59 of file map.hpp.
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 36 of file map.cpp.
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 82 of file map.hpp.
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 99 of file map.hpp.
ndn::optional< int32_t > nlsr::Map::getMappingNoByRouterName |
( |
const ndn::Name & |
rName | ) |
|
size_t nlsr::Map::getMapSize |
( |
| ) |
const |
|
inline |
ndn::optional< ndn::Name > nlsr::Map::getRouterNameByMappingNo |
( |
int32_t |
mn | ) |
|
void nlsr::Map::reset |
( |
| ) |
|
void nlsr::Map::writeLog |
( |
| ) |
|