nlsr::tlv::NextHop Class Reference

Data abstraction for Nexthop. More...

#include <nexthop.hpp>

Data Structures

class  Error
 

Public Member Functions

 NextHop ()
 
 NextHop (const ndn::Block &block)
 
const std::string & getUri () const
 
NextHopsetUri (const std::string &uri)
 
double getCost () const
 
NextHopsetCost (double cost)
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 
const ndn::Block & wireEncode () const
 
void wireDecode (const ndn::Block &wire)
 

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 43 of file tlv/nexthop.hpp.

Constructor & Destructor Documentation

nlsr::tlv::NextHop::NextHop ( )

Definition at line 37 of file tlv/nexthop.cpp.

Here is the caller graph for this function:

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

Definition at line 42 of file tlv/nexthop.cpp.

Here is the call graph for this function:

Member Function Documentation

double nlsr::tlv::NextHop::getCost ( ) const
inline

Definition at line 76 of file tlv/nexthop.hpp.

Here is the caller graph for this function:

const std::string& nlsr::tlv::NextHop::getUri ( ) const
inline

Definition at line 62 of file tlv/nexthop.hpp.

Here is the caller graph for this function:

NextHop& nlsr::tlv::NextHop::setCost ( double  cost)
inline

Definition at line 82 of file tlv/nexthop.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NextHop& nlsr::tlv::NextHop::setUri ( const std::string &  uri)
inline

Definition at line 68 of file tlv/nexthop.hpp.

Here is the caller graph for this function:

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

Definition at line 85 of file tlv/nexthop.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::NextHop::wireEncode ( ndn::EncodingImpl< TAG > &  block) const

Definition at line 49 of file tlv/nexthop.cpp.

Here is the call graph for this function:

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

Definition at line 67 of file tlv/nexthop.cpp.

Here is the caller graph for this function: