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 152 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 214 of file rib-entry.cpp.

Member Function Documentation

◆ addRoute()

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

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

◆ clearRoutes()

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

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

◆ getName()

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

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

◆ getRoutes()

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

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

◆ setName()

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

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

◆ setRoutes()

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

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

◆ wireDecode()

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

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

◆ wireEncode() [1/2]

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

Definition at line 262 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 245 of file rib-entry.cpp.