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

represents a FIB entry More...

#include <fib-entry.hpp>

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

Public Member Functions

 Entry (const Name &prefix)
 
const NamegetPrefix () const
 
const NextHopListgetNextHops () const
 
bool hasNextHops () const
 
bool hasNextHop (const Face &face) const
 
void addNextHop (Face &face, uint64_t cost)
 adds a NextHop record More...
 
void removeNextHop (const Face &face)
 removes a NextHop record 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.

References Face.

Member Function Documentation

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

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

References Face.

Referenced by nfd::FibManager::FibManager(), and nfd::fib::Fib::removeNextHop().

bool nfd::fib::Entry::hasNextHop ( const Face face) const
void nfd::fib::Entry::addNextHop ( Face face,
uint64_t  cost 
)

adds a NextHop record

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

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

Referenced by nfd::FibManager::FibManager().

void nfd::fib::Entry::removeNextHop ( const Face face)

removes a NextHop record

If no NextHop record for face exists, do nothing.

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

References nfd::fib::NextHop::getCost().

Referenced by nfd::cleanupOnFaceRemoval(), nfd::FibManager::FibManager(), and nfd::fib::Fib::removeNextHop().

Friends And Related Function Documentation

friend class name_tree::Entry
friend

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


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