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

#include <fib-entry.hpp>

Classes

class  Error
 

Public Member Functions

 FibEntry ()
 
 FibEntry (const Block &block)
 
const NamegetPrefix () const
 
FibEntrysetPrefix (const Name &prefix)
 
const std::vector< NextHopRecord > & getNextHopRecords () const
 
template<typename InputIt >
FibEntrysetNextHopRecords (InputIt first, InputIt last)
 
FibEntryaddNextHopRecord (const NextHopRecord &nh)
 
FibEntryclearNextHopRecords ()
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &block)
 

Detailed Description

Constructor & Destructor Documentation

◆ FibEntry() [1/2]

ndn::nfd::FibEntry::FibEntry ( )
default

Referenced by ndn::nfd::operator<<().

◆ FibEntry() [2/2]

ndn::nfd::FibEntry::FibEntry ( const Block block)
explicit

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

References ndn::nfd::NextHopRecord::wireDecode().

Member Function Documentation

◆ getPrefix()

const Name& ndn::nfd::FibEntry::getPrefix ( ) const
inline

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setPrefix()

FibEntry & ndn::nfd::FibEntry::setPrefix ( const Name prefix)

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

References ndn::Block::reset().

◆ getNextHopRecords()

const std::vector<NextHopRecord>& ndn::nfd::FibEntry::getNextHopRecords ( ) const
inline

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNextHopRecords()

template<typename InputIt >
FibEntry& ndn::nfd::FibEntry::setNextHopRecords ( InputIt  first,
InputIt  last 
)
inline

◆ addNextHopRecord()

FibEntry & ndn::nfd::FibEntry::addNextHopRecord ( const NextHopRecord nh)

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

References ndn::Block::reset().

◆ clearNextHopRecords()

FibEntry & ndn::nfd::FibEntry::clearNextHopRecords ( )

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

References ndn::Block::reset().

◆ wireEncode() [1/2]

template<encoding::Tag TAG>
size_t ndn::nfd::FibEntry::wireEncode ( EncodingImpl< TAG > &  block) const

◆ wireEncode() [2/2]

const Block & ndn::nfd::FibEntry::wireEncode ( ) const

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

References ndn::Block::hasWire(), and ndn::nfd::NextHopRecord::wireEncode().

◆ wireDecode()


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