ndn::nfd::RibEntry Class Reference

Represents an item in NFD RIB dataset. More...

#include <ndn-cxx/mgmt/nfd/rib-entry.hpp>

Classes

class  Error
 

Public Member Functions

 RibEntry ()
 
 RibEntry (const Block &block)
 
RibEntryaddRoute (const Route &route)
 
RibEntryclearRoutes ()
 
const NamegetName () const
 
const std::vector< Route > & getRoutes () const
 
RibEntrysetName (const Name &prefix)
 
template<typename InputIt >
RibEntrysetRoutes (InputIt first, InputIt last)
 
void wireDecode (const Block &block)
 
const BlockwireEncode () const
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 

Detailed Description

Represents an item in NFD RIB dataset.

A RIB entry contains one or more routes for a name prefix

See also
https://redmine.named-data.net/projects/nfd/wiki/RibMgmt#RIB-Dataset

Definition at line 153 of file rib-entry.hpp.

Constructor & Destructor Documentation

◆ RibEntry() [1/2]

ndn::nfd::RibEntry::RibEntry ( )
default

◆ RibEntry() [2/2]

ndn::nfd::RibEntry::RibEntry ( const Block block)
explicit

Definition at line 225 of file rib-entry.cpp.

Member Function Documentation

◆ addRoute()

RibEntry & ndn::nfd::RibEntry::addRoute ( const Route route)

Definition at line 239 of file rib-entry.cpp.

◆ clearRoutes()

RibEntry & ndn::nfd::RibEntry::clearRoutes ( )

Definition at line 247 of file rib-entry.cpp.

◆ getName()

const Name& ndn::nfd::RibEntry::getName ( ) const
inline

Definition at line 168 of file rib-entry.hpp.

◆ getRoutes()

const std::vector<Route>& ndn::nfd::RibEntry::getRoutes ( ) const
inline

Definition at line 177 of file rib-entry.hpp.

◆ setName()

RibEntry & ndn::nfd::RibEntry::setName ( const Name prefix)

Definition at line 231 of file rib-entry.cpp.

◆ setRoutes()

template<typename InputIt >
RibEntry& ndn::nfd::RibEntry::setRoutes ( InputIt  first,
InputIt  last 
)
inline

Definition at line 184 of file rib-entry.hpp.

◆ wireDecode()

void ndn::nfd::RibEntry::wireDecode ( const Block block)

Definition at line 289 of file rib-entry.cpp.

◆ wireEncode() [1/2]

const Block & ndn::nfd::RibEntry::wireEncode ( ) const

Definition at line 273 of file rib-entry.cpp.

◆ wireEncode() [2/2]

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

Definition at line 256 of file rib-entry.cpp.