NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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::list< NextHopRecord > & getNextHopRecords () const
 
FibEntryaddNextHopRecord (const NextHopRecord &nextHopRecord)
 
template<typename T >
FibEntrysetNextHopRecords (const T &begin, const T &end)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &block) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FibEntry() [1/2]

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

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

◆ FibEntry() [2/2]

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

Definition at line 164 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 108 of file fib-entry.hpp.

◆ setPrefix()

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

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

References ndn::Block::reset().

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

◆ getNextHopRecords()

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

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

◆ addNextHopRecord()

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

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

References ndn::Block::reset().

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

◆ setNextHopRecords()

template<typename T >
FibEntry& ndn::nfd::FibEntry::setNextHopRecords ( const T &  begin,
const T &  end 
)
inline

◆ wireEncode() [1/2]

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

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

References ndn::tlv::nfd::FibEntry.

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

◆ wireEncode() [2/2]

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

Definition at line 209 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: