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

represents a FIB update More...

#include <fib-update.hpp>

Collaboration diagram for nfd::rib::FibUpdate:

Public Types

enum  Action { ADD_NEXTHOP = 0, REMOVE_NEXTHOP = 1 }
 

Public Member Functions

 FibUpdate ()
 
bool operator== (const FibUpdate &other) const
 

Static Public Member Functions

static FibUpdate createAddUpdate (const Name &name, const uint64_t faceId, const uint64_t cost)
 
static FibUpdate createRemoveUpdate (const Name &name, const uint64_t faceId)
 

Public Attributes

Name name
 
uint64_t faceId
 
uint64_t cost
 
Action action
 

Detailed Description

represents a FIB update

Definition at line 37 of file fib-update.hpp.

Member Enumeration Documentation

Enumerator
ADD_NEXTHOP 
REMOVE_NEXTHOP 

Definition at line 61 of file fib-update.hpp.

Constructor & Destructor Documentation

nfd::rib::FibUpdate::FibUpdate ( )
inline

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

Member Function Documentation

bool nfd::rib::FibUpdate::operator== ( const FibUpdate other) const
inline

Definition at line 47 of file fib-update.hpp.

References action, cost, createAddUpdate(), createRemoveUpdate(), faceId, and name.

FibUpdate nfd::rib::FibUpdate::createAddUpdate ( const Name name,
const uint64_t  faceId,
const uint64_t  cost 
)
static

Definition at line 32 of file fib-update.cpp.

References action, ADD_NEXTHOP, cost, faceId, and name.

Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), and operator==().

FibUpdate nfd::rib::FibUpdate::createRemoveUpdate ( const Name name,
const uint64_t  faceId 
)
static

Definition at line 45 of file fib-update.cpp.

References action, faceId, name, and REMOVE_NEXTHOP.

Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), and operator==().

Member Data Documentation

uint64_t nfd::rib::FibUpdate::faceId
uint64_t nfd::rib::FibUpdate::cost

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