nfd::rib::RibUpdate Class Reference

Represents a route that will be added to or removed from a namespace. More...

#include <daemon/rib/rib-update.hpp>

Public Types

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

Public Member Functions

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

Detailed Description

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 38 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 41 of file rib-update.hpp.

Member Function Documentation

◆ getAction()

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

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

◆ getName()

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

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

◆ getRoute()

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

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

◆ setAction()

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

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

◆ setName()

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

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

◆ setRoute()

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

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