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

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

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

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

Constructor & Destructor Documentation

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

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

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

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:

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:

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

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

Here is the caller graph for this function:

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:

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:

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:

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

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

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:

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:

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:

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:

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:

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: