nlsr::Map Class Reference

#include <map.hpp>

Public Member Functions

 Map ()
 
void addEntry (const ndn::Name &rtrName)
 Add a map entry to this map. More...
 
template<typename IteratorType >
void createFromAdjLsdb (IteratorType begin, IteratorType end)
 
template<typename IteratorType >
void createFromCoordinateLsdb (IteratorType begin, IteratorType end)
 
ndn::optional< ndn::Name > getRouterNameByMappingNo (int32_t mn)
 
ndn::optional< int32_t > getMappingNoByRouterName (const ndn::Name &rName)
 
void reset ()
 
size_t getMapSize () const
 
void writeLog ()
 

Detailed Description

Definition at line 59 of file map.hpp.

Constructor & Destructor Documentation

nlsr::Map::Map ( )
inline

Definition at line 62 of file map.hpp.

Member Function Documentation

void nlsr::Map::addEntry ( const ndn::Name &  rtrName)

Add a map entry to this map.

Parameters
rtrNameThe 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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

ndn::optional< int32_t > nlsr::Map::getMappingNoByRouterName ( const ndn::Name &  rName)

Definition at line 64 of file map.cpp.

Here is the caller graph for this function:

size_t nlsr::Map::getMapSize ( ) const
inline

Definition at line 117 of file map.hpp.

Here is the caller graph for this function:

ndn::optional< ndn::Name > nlsr::Map::getRouterNameByMappingNo ( int32_t  mn)

Definition at line 51 of file map.cpp.

Here is the caller graph for this function:

void nlsr::Map::reset ( )

Definition at line 77 of file map.cpp.

void nlsr::Map::writeLog ( )

Definition at line 84 of file map.cpp.

Here is the caller graph for this function: