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

Data abstraction for RIB entry. More...

#include <nfd-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 nfd-rib-entry.hpp.

Member Typedef Documentation

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

Referenced by nfd::rib::RibStatusPublisher::generate().

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

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

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

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

Referenced by nfd::rib::RibStatusPublisher::generate().

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

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

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

Referenced by nfd::rib::RibStatusPublisher::generate().

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

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

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

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

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

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

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

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

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

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


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