nlsr::tlv::RoutingTable Class Reference

Data abstraction for RouteTableInfo. More...

#include <routing-table-entry.hpp>

Data Structures

class  Error
 

Public Types

typedef std::list< NextHopHopList
 
typedef HopList::const_iterator const_iterator
 

Public Member Functions

 RoutingTable ()
 
 RoutingTable (const ndn::Block &block)
 
const DestinationgetDestination () const
 
RoutingTablesetDestination (const Destination &des)
 
uint64_t getRtSize () const
 
RoutingTablesetRtSize (uint64_t size)
 
bool hasNexthops () const
 
const std::list< NextHop > & getNextHops () const
 
RoutingTableaddNexthops (const NextHop &nexthop)
 
RoutingTableclearNexthops ()
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 
const ndn::Block & wireEncode () const
 
void wireDecode (const ndn::Block &wire)
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

Data abstraction for RouteTableInfo.

RouteTableInfo := ROUTINGTABLE-TYPE TLV-LENGTH Destination NexthopList*

See also
https://redmine.named-data.net/projects/nlsr/wiki/Routing_Table_DataSet

Definition at line 47 of file tlv/routing-table-entry.hpp.

Member Typedef Documentation

◆ const_iterator

typedef HopList::const_iterator nlsr::tlv::RoutingTable::const_iterator

Definition at line 61 of file tlv/routing-table-entry.hpp.

◆ HopList

Definition at line 60 of file tlv/routing-table-entry.hpp.

Constructor & Destructor Documentation

◆ RoutingTable() [1/2]

nlsr::tlv::RoutingTable::RoutingTable ( )

Definition at line 36 of file tlv/routing-table-entry.cpp.

◆ RoutingTable() [2/2]

nlsr::tlv::RoutingTable::RoutingTable ( const ndn::Block &  block)
explicit

Definition at line 41 of file tlv/routing-table-entry.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addNexthops()

RoutingTable & nlsr::tlv::RoutingTable::addNexthops ( const NextHop nexthop)

Definition at line 53 of file tlv/routing-table-entry.cpp.

Here is the caller graph for this function:

◆ begin()

RoutingTable::const_iterator nlsr::tlv::RoutingTable::begin ( ) const
inline

Definition at line 139 of file tlv/routing-table-entry.hpp.

Here is the caller graph for this function:

◆ clearNexthops()

RoutingTable & nlsr::tlv::RoutingTable::clearNexthops ( )

Definition at line 62 of file tlv/routing-table-entry.cpp.

Here is the caller graph for this function:

◆ end()

RoutingTable::const_iterator nlsr::tlv::RoutingTable::end ( ) const
inline

Definition at line 145 of file tlv/routing-table-entry.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDestination()

const Destination& nlsr::tlv::RoutingTable::getDestination ( ) const
inline

Definition at line 69 of file tlv/routing-table-entry.hpp.

Here is the caller graph for this function:

◆ getNextHops()

const std::list<NextHop>& nlsr::tlv::RoutingTable::getNextHops ( ) const
inline

Definition at line 100 of file tlv/routing-table-entry.hpp.

Here is the call graph for this function:

◆ getRtSize()

uint64_t nlsr::tlv::RoutingTable::getRtSize ( ) const
inline

Definition at line 83 of file tlv/routing-table-entry.hpp.

◆ hasNexthops()

bool nlsr::tlv::RoutingTable::hasNexthops ( ) const

Definition at line 47 of file tlv/routing-table-entry.cpp.

Here is the caller graph for this function:

◆ setDestination()

RoutingTable& nlsr::tlv::RoutingTable::setDestination ( const Destination des)
inline

Definition at line 75 of file tlv/routing-table-entry.hpp.

Here is the caller graph for this function:

◆ setRtSize()

RoutingTable& nlsr::tlv::RoutingTable::setRtSize ( uint64_t  size)
inline

Definition at line 89 of file tlv/routing-table-entry.hpp.

Here is the call graph for this function:

◆ wireDecode()

void nlsr::tlv::RoutingTable::wireDecode ( const ndn::Block &  wire)

Definition at line 109 of file tlv/routing-table-entry.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wireEncode() [1/2]

template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::RoutingTable::wireEncode ( ndn::EncodingImpl< TAG > &  block) const

Definition at line 71 of file tlv/routing-table-entry.cpp.

Here is the call graph for this function:

◆ wireEncode() [2/2]

const ndn::Block & nlsr::tlv::RoutingTable::wireEncode ( ) const

Definition at line 91 of file tlv/routing-table-entry.cpp.

Here is the caller graph for this function: