nfd::rib::FibUpdate Class Reference

represents a FIB update More...

#include <daemon/rib/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

Action action
 
uint64_t cost
 
uint64_t faceId
 
Name name
 

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

◆ 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.

◆ createRemoveUpdate()

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

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

◆ operator==()

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

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

Member Data Documentation

◆ action

Action nfd::rib::FibUpdate::action

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

◆ cost

uint64_t nfd::rib::FibUpdate::cost

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

◆ faceId

uint64_t nfd::rib::FibUpdate::faceId

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

◆ name

Name nfd::rib::FibUpdate::name

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