nlsr::RoutingTableStatus Class Reference

Data abstraction for routing table status. More...

#include <routing-table.hpp>

+ Inheritance diagram for nlsr::RoutingTableStatus:
+ Collaboration diagram for nlsr::RoutingTableStatus:

Public Types

using Error = ndn::tlv::Error
 

Public Member Functions

 RoutingTableStatus ()=default
 
 RoutingTableStatus (const ndn::Block &block)
 
const std::list< RoutingTableEntry > & getDryRoutingTableEntry () const
 
const std::list< RoutingTableEntry > & getRoutingTableEntry () const
 
const ndn::Block & wireEncode () const
 

Protected Attributes

std::list< RoutingTableEntrym_dryTable
 
std::list< RoutingTableEntrym_rTable
 
ndn::Block m_wire
 

Detailed Description

Data abstraction for routing table status.

RtStatus := RT-STATUS-TYPE TLV-LENGTH RouteTableEntry*

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

Definition at line 45 of file routing-table.hpp.

Member Typedef Documentation

◆ Error

using nlsr::RoutingTableStatus::Error = ndn::tlv::Error

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

Constructor & Destructor Documentation

◆ RoutingTableStatus() [1/2]

nlsr::RoutingTableStatus::RoutingTableStatus ( )
default

◆ RoutingTableStatus() [2/2]

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

Definition at line 52 of file routing-table.hpp.

Member Function Documentation

◆ getDryRoutingTableEntry()

const std::list<RoutingTableEntry>& nlsr::RoutingTableStatus::getDryRoutingTableEntry ( ) const
inline

Definition at line 64 of file routing-table.hpp.

◆ getRoutingTableEntry()

const std::list<RoutingTableEntry>& nlsr::RoutingTableStatus::getRoutingTableEntry ( ) const
inline

Definition at line 58 of file routing-table.hpp.

◆ wireEncode()

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

Definition at line 265 of file routing-table.cpp.

Member Data Documentation

◆ m_dryTable

std::list<RoutingTableEntry> nlsr::RoutingTableStatus::m_dryTable
protected

Definition at line 81 of file routing-table.hpp.

◆ m_rTable

std::list<RoutingTableEntry> nlsr::RoutingTableStatus::m_rTable
protected

Definition at line 82 of file routing-table.hpp.

◆ m_wire

ndn::Block nlsr::RoutingTableStatus::m_wire
mutableprotected

Definition at line 83 of file routing-table.hpp.