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

References wireDecode().

Member Function Documentation

◆ getName()

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

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

References ndn::Block::reset().

◆ getRoutes()

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

Definition at line 181 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 188 of file rib-entry.hpp.

References ndn::Block::reset().

◆ addRoute()

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

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

References ndn::Block::reset().

◆ clearRoutes()

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

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

References ndn::Block::hasWire().

◆ wireDecode()


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