NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::nfd::RibEntry Class Reference

Data abstraction for RIB entry. More...

#include <rib-entry.hpp>

Classes

class  Error
 

Public Types

typedef std::list< RouteRouteList
 
typedef RouteList::const_iterator iterator
 

Public Member Functions

 RibEntry ()
 
 RibEntry (const Block &block)
 
const NamegetName () const
 
RibEntrysetName (const Name &prefix)
 
const std::list< Route > & getRoutes () const
 
RibEntryaddRoute (const Route &route)
 
RibEntryclearRoutes ()
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 
iterator begin () const
 
iterator end () const
 

Detailed Description

Data abstraction for RIB entry.

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

RibEntry := RIB-ENTRY-TYPE TLV-LENGTH
           Name
           Route+
See also
http://redmine.named-data.net/projects/nfd/wiki/RibMgmt

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

Member Typedef Documentation

◆ RouteList

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

◆ iterator

typedef RouteList::const_iterator ndn::nfd::RibEntry::iterator

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

Constructor & Destructor Documentation

◆ RibEntry() [1/2]

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

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

◆ RibEntry() [2/2]

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

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

References ndn::nfd::Route::wireDecode().

Member Function Documentation

◆ getName()

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

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

Referenced by ndn::nfd::operator<<().

◆ setName()

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

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

Referenced by nfd::rib::RibManager::onRibUpdateFailure().

◆ getRoutes()

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

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

◆ addRoute()

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

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

Referenced by nfd::rib::RibManager::onRibUpdateFailure().

◆ clearRoutes()

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

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

References ndn::nfd::Route::wireDecode(), and ndn::nfd::Route::wireEncode().

◆ wireEncode() [1/2]

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

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

References ndn::tlv::nfd::RibEntry.

Referenced by nfd::rib::RibManager::onRibUpdateFailure().

◆ wireEncode() [2/2]

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

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

References ndn::Block::hasWire(), and ndn::nfd::Route::wireEncode().

◆ wireDecode()

◆ begin()

RibEntry::iterator ndn::nfd::RibEntry::begin ( ) const
inline

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

Referenced by ndn::nfd::operator<<().

◆ end()

RibEntry::iterator ndn::nfd::RibEntry::end ( ) const
inline

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

References ndn::nfd::operator<<().

Referenced by ndn::nfd::operator<<().


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