nlsr::RoutingTableEntry Class Reference

Data abstraction for RouteTableInfo. More...

#include <routing-table-entry.hpp>

+ Inheritance diagram for nlsr::RoutingTableEntry:
+ Collaboration diagram for nlsr::RoutingTableEntry:

Public Types

using Error = ndn::tlv::Error
 

Public Member Functions

 RoutingTableEntry ()=default
 
 RoutingTableEntry (const ndn::Block &block)
 
 RoutingTableEntry (const ndn::Name &dest)
 
const ndn::Name & getDestination () const
 
NexthopListgetNexthopList ()
 
const NexthopListgetNexthopList () const
 
bool operator== (RoutingTableEntry &rhs)
 
void wireDecode (const ndn::Block &wire)
 
const ndn::Block & wireEncode () const
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 

Protected Attributes

ndn::Name m_destination
 
NexthopList m_nexthopList
 
ndn::Block m_wire
 

Detailed Description

Data abstraction for RouteTableInfo.

RoutingTableEntry := ROUTINGTABLEENTRY-TYPE TLV-LENGTH Name NexthopList*

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

Definition at line 41 of file routing-table-entry.hpp.

Member Typedef Documentation

◆ Error

using nlsr::RoutingTableEntry::Error = ndn::tlv::Error

Definition at line 44 of file routing-table-entry.hpp.

Constructor & Destructor Documentation

◆ RoutingTableEntry() [1/3]

nlsr::RoutingTableEntry::RoutingTableEntry ( )
default

◆ RoutingTableEntry() [2/3]

nlsr::RoutingTableEntry::RoutingTableEntry ( const ndn::Block &  block)
inline

Definition at line 48 of file routing-table-entry.hpp.

◆ RoutingTableEntry() [3/3]

nlsr::RoutingTableEntry::RoutingTableEntry ( const ndn::Name &  dest)
inline

Definition at line 53 of file routing-table-entry.hpp.

Member Function Documentation

◆ getDestination()

const ndn::Name& nlsr::RoutingTableEntry::getDestination ( ) const
inline

Definition at line 59 of file routing-table-entry.hpp.

◆ getNexthopList() [1/2]

NexthopList& nlsr::RoutingTableEntry::getNexthopList ( )
inline

Definition at line 65 of file routing-table-entry.hpp.

◆ getNexthopList() [2/2]

const NexthopList& nlsr::RoutingTableEntry::getNexthopList ( ) const
inline

Definition at line 71 of file routing-table-entry.hpp.

◆ operator==()

bool nlsr::RoutingTableEntry::operator== ( RoutingTableEntry rhs)
inline

Definition at line 77 of file routing-table-entry.hpp.

◆ wireDecode()

void nlsr::RoutingTableEntry::wireDecode ( const ndn::Block &  wire)

Definition at line 66 of file routing-table-entry.cpp.

◆ wireEncode() [1/2]

const ndn::Block & nlsr::RoutingTableEntry::wireEncode ( ) const

Definition at line 48 of file routing-table-entry.cpp.

◆ wireEncode() [2/2]

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

Definition at line 29 of file routing-table-entry.cpp.

Member Data Documentation

◆ m_destination

ndn::Name nlsr::RoutingTableEntry::m_destination
protected

Definition at line 94 of file routing-table-entry.hpp.

◆ m_nexthopList

NexthopList nlsr::RoutingTableEntry::m_nexthopList
protected

Definition at line 95 of file routing-table-entry.hpp.

◆ m_wire

ndn::Block nlsr::RoutingTableEntry::m_wire
mutableprotected

Definition at line 97 of file routing-table-entry.hpp.