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

◆ FibEntry() [2/2]

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

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

References wireDecode().

Member Function Documentation

◆ getPrefix()

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

Definition at line 124 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 150 of file fib-entry.cpp.

References ndn::Block::reset().

◆ getNextHopRecords()

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

Definition at line 133 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

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

References ndn::Block::reset().

◆ addNextHopRecord()

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

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

References ndn::Block::reset().

◆ clearNextHopRecords()

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

Definition at line 166 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

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

References ndn::tlv::nfd::FibEntry, and ndn::Name::wireEncode().

◆ wireEncode() [2/2]

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

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

References ndn::Block::hasWire().

◆ wireDecode()


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