NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 (shared_ptr< Face > face) const
void addNextHop (shared_ptr< Face > face, uint64_t cost)
 adds a NextHop record More...
void removeNextHop (shared_ptr< Face > face)
 removes a NextHop record More...


class nfd::NameTree
class nfd::name_tree::Entry

Detailed Description

represents a FIB entry

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

Constructor & Destructor Documentation

§ Entry()

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

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

Member Function Documentation

§ getPrefix()

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

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

Referenced by nfd::Measurements::get().

§ getNextHops()

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

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

§ hasNextHops()

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

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

References ndn::Name::empty().

§ hasNextHop()

bool nfd::fib::Entry::hasNextHop ( shared_ptr< Face >  face) const
whether there is a NextHop record for face
change parameter type to Face&

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

§ addNextHop()

void nfd::fib::Entry::addNextHop ( shared_ptr< Face >  face,
uint64_t  cost 

adds a NextHop record

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

shared_ptr is passed by value because this function will take shared ownership

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

§ removeNextHop()

void nfd::fib::Entry::removeNextHop ( shared_ptr< Face >  face)

removes a NextHop record

If no NextHop record for face exists, do nothing.

change parameter type to Face&

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

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

Friends And Related Function Documentation

§ nfd::NameTree

friend class nfd::NameTree

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

§ nfd::name_tree::Entry

friend class nfd::name_tree::Entry

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

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