ndn::nfd::RibEntry Class Reference

represents an item in NFD RIB dataset More...

#include <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)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 
const BlockwireEncode () 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 157 of file rib-entry.hpp.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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