NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ Action

Enumerator
ADD_NEXTHOP 
REMOVE_NEXTHOP 

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

Constructor & Destructor Documentation

◆ FibUpdate()

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

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

Member Function Documentation

◆ operator==()

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

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

References action, cost, faceId, and name.

◆ createAddUpdate()

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.

◆ createRemoveUpdate()

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.

Member Data Documentation

◆ name

Name nfd::rib::FibUpdate::name

◆ faceId

uint64_t nfd::rib::FibUpdate::faceId

◆ cost

uint64_t nfd::rib::FibUpdate::cost

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

Referenced by createAddUpdate(), nfd::rib::operator<<(), and operator==().

◆ action

Action nfd::rib::FibUpdate::action

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