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

RibUpdate. More...

#include <rib-update.hpp>

Public Types

enum  Action { REGISTER = 0, UNREGISTER = 1, REMOVE_FACE = 2 }
 

Public Member Functions

 RibUpdate ()
 
RibUpdatesetAction (Action action)
 
Action getAction () const
 
RibUpdatesetName (const Name &name)
 
const NamegetName () const
 
RibUpdatesetRoute (const Route &route)
 
const RoutegetRoute () const
 

Detailed Description

RibUpdate.

represents a route that will be added to or removed from a namespace

Note
This type is copyable so that it can be stored in STL containers.

Definition at line 40 of file rib-update.hpp.

Member Enumeration Documentation

◆ Action

Enumerator
REGISTER 
UNREGISTER 
REMOVE_FACE 

An update triggered by a face destruction notification.

\note indicates a Route needs to be removed after a face is destroyed

Definition at line 43 of file rib-update.hpp.

Constructor & Destructor Documentation

◆ RibUpdate()

nfd::rib::RibUpdate::RibUpdate ( )

Definition at line 31 of file rib-update.cpp.

Member Function Documentation

◆ setAction()

RibUpdate & nfd::rib::RibUpdate::setAction ( Action  action)
inline

Definition at line 81 of file rib-update.hpp.

Referenced by nfd::rib::Rib::onRouteExpiration().

◆ getAction()

RibUpdate::Action nfd::rib::RibUpdate::getAction ( ) const
inline

Definition at line 88 of file rib-update.hpp.

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

◆ setName()

RibUpdate & nfd::rib::RibUpdate::setName ( const Name name)
inline

Definition at line 94 of file rib-update.hpp.

Referenced by nfd::rib::Rib::onRouteExpiration().

◆ getName()

const Name & nfd::rib::RibUpdate::getName ( ) const
inline

Definition at line 101 of file rib-update.hpp.

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

◆ setRoute()

RibUpdate & nfd::rib::RibUpdate::setRoute ( const Route route)
inline

Definition at line 107 of file rib-update.hpp.

Referenced by nfd::rib::Rib::onRouteExpiration().

◆ getRoute()

const Route & nfd::rib::RibUpdate::getRoute ( ) const
inline

Definition at line 114 of file rib-update.hpp.

Referenced by nfd::rib::RibUpdateBatch::add(), and nfd::rib::operator<<().


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