nfd::fib::Entry Class Reference

represents a FIB entry More...

#include <daemon/table/fib-entry.hpp>

+ Inheritance diagram for nfd::fib::Entry:
+ Collaboration diagram for nfd::fib::Entry:

Public Member Functions

 Entry (const Name &prefix)
 
void addOrUpdateNextHop (Face &face, uint64_t endpointId, uint64_t cost)
 adds a NextHop record More...
 
const NextHopListgetNextHops () const
 
const Name & getPrefix () const
 
bool hasNextHop (const Face &face, uint64_t endpointId) const
 
bool hasNextHops () const
 
void removeNextHop (const Face &face, uint64_t endpointId)
 removes the NextHop record for face with the given endpointId More...
 
void removeNextHopByFace (const Face &face)
 removes all NextHop records on face for any endpointId More...
 

Friends

class name_tree::Entry
 

Detailed Description

represents a FIB entry

Definition at line 51 of file fib-entry.hpp.

Constructor & Destructor Documentation

nfd::fib::Entry::Entry ( const Name &  prefix)
explicit

Definition at line 31 of file fib-entry.cpp.

Member Function Documentation

void nfd::fib::Entry::addOrUpdateNextHop ( Face &  face,
uint64_t  endpointId,
uint64_t  cost 
)

adds a NextHop record

If a NextHop record for face and endpointId already exists, its cost is updated.

Definition at line 53 of file fib-entry.cpp.

const NextHopList& nfd::fib::Entry::getNextHops ( ) const
inline

Definition at line 64 of file fib-entry.hpp.

const Name& nfd::fib::Entry::getPrefix ( ) const
inline

Definition at line 58 of file fib-entry.hpp.

bool nfd::fib::Entry::hasNextHop ( const Face &  face,
uint64_t  endpointId 
) const
Returns
whether there is a NextHop record for face with the given endpointId

Definition at line 47 of file fib-entry.cpp.

bool nfd::fib::Entry::hasNextHops ( ) const
inline
Returns
whether this Entry has any NextHop record

Definition at line 72 of file fib-entry.hpp.

void nfd::fib::Entry::removeNextHop ( const Face &  face,
uint64_t  endpointId 
)

removes the NextHop record for face with the given endpointId

Definition at line 65 of file fib-entry.cpp.

void nfd::fib::Entry::removeNextHopByFace ( const Face &  face)

removes all NextHop records on face for any endpointId

Definition at line 74 of file fib-entry.cpp.

Friends And Related Function Documentation

friend class name_tree::Entry
friend

Definition at line 117 of file fib-entry.hpp.