nfd::rib::FibUpdate Class Reference

represents a FIB update More...

#include <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

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

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.

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

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

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

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

Member Data Documentation

Action nfd::rib::FibUpdate::action

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

uint64_t nfd::rib::FibUpdate::cost

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

uint64_t nfd::rib::FibUpdate::faceId

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

Name nfd::rib::FibUpdate::name

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