NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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)
 
const NamegetName () const
 
RibEntrysetName (const Name &prefix)
 
const std::vector< Route > & getRoutes () const
 
template<typename InputIt >
RibEntrysetRoutes (InputIt first, InputIt last)
 
RibEntryaddRoute (const Route &route)
 
RibEntryclearRoutes ()
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &block)
 

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.

References wireDecode().

Member Function Documentation

◆ getName()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setName()

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

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

References ndn::Block::reset().

◆ getRoutes()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setRoutes()

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

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

References ndn::Block::reset().

◆ addRoute()

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

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

References ndn::Block::reset().

◆ clearRoutes()

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

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

References ndn::Block::reset().

◆ wireEncode() [1/2]

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

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

References ndn::tlv::nfd::RibEntry, and ndn::Name::wireEncode().

◆ wireEncode() [2/2]

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

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

References ndn::Block::hasWire().

◆ wireDecode()


The documentation for this class was generated from the following files: