nlsr::NextHop Class Reference

Data abstraction for Nexthop. More...

#include <nexthop.hpp>

Public Types

using Error = ndn::tlv::Error
 

Public Member Functions

 NextHop ()
 
 NextHop (const std::string &cfu, double rc)
 
 NextHop (const ndn::Block &block)
 
const std::string & getConnectingFaceUri () const
 
double getRouteCost () const
 
uint64_t getRouteCostAsAdjustedInteger () const
 
bool isHyperbolic () const
 
void setConnectingFaceUri (const std::string &cfu)
 
void setHyperbolic (bool b)
 
void setRouteCost (const double rc)
 
void wireDecode (const ndn::Block &wire)
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 
const ndn::Block & wireEncode () const
 

Detailed Description

Data abstraction for Nexthop.

NextHop := NEXTHOP-TYPE TLV-LENGTH Uri Cost

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

Definition at line 44 of file nexthop.hpp.

Member Typedef Documentation

◆ Error

Definition at line 47 of file nexthop.hpp.

Constructor & Destructor Documentation

◆ NextHop() [1/3]

nlsr::NextHop::NextHop ( )
inline

Definition at line 49 of file nexthop.hpp.

◆ NextHop() [2/3]

nlsr::NextHop::NextHop ( const std::string &  cfu,
double  rc 
)
inline

Definition at line 56 of file nexthop.hpp.

◆ NextHop() [3/3]

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

Definition at line 63 of file nexthop.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getConnectingFaceUri()

const std::string& nlsr::NextHop::getConnectingFaceUri ( ) const
inline

Definition at line 69 of file nexthop.hpp.

+ Here is the caller graph for this function:

◆ getRouteCost()

double nlsr::NextHop::getRouteCost ( ) const
inline

Definition at line 95 of file nexthop.hpp.

+ Here is the caller graph for this function:

◆ getRouteCostAsAdjustedInteger()

uint64_t nlsr::NextHop::getRouteCostAsAdjustedInteger ( ) const
inline

Definition at line 81 of file nexthop.hpp.

+ Here is the caller graph for this function:

◆ isHyperbolic()

bool nlsr::NextHop::isHyperbolic ( ) const
inline

Definition at line 113 of file nexthop.hpp.

+ Here is the call graph for this function:

◆ setConnectingFaceUri()

void nlsr::NextHop::setConnectingFaceUri ( const std::string &  cfu)
inline

Definition at line 75 of file nexthop.hpp.

◆ setHyperbolic()

void nlsr::NextHop::setHyperbolic ( bool  b)
inline

Definition at line 107 of file nexthop.hpp.

+ Here is the caller graph for this function:

◆ setRouteCost()

void nlsr::NextHop::setRouteCost ( const double  rc)
inline

Definition at line 101 of file nexthop.hpp.

◆ wireDecode()

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

Definition at line 64 of file nexthop.cpp.

+ Here is the caller graph for this function:

◆ wireEncode() [1/2]

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

Definition at line 30 of file nexthop.cpp.

+ Here is the call graph for this function:

◆ wireEncode() [2/2]

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

Definition at line 46 of file nexthop.cpp.

+ Here is the caller graph for this function: