NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nfd::FibEnumerationPublisher Class Reference

#include <fib-enumeration-publisher.hpp>

Inheritance diagram for nfd::FibEnumerationPublisher:
Collaboration diagram for nfd::FibEnumerationPublisher:

Public Member Functions

 FibEnumerationPublisher (const Fib &fib, AppFace &face, const Name &prefix, ndn::KeyChain &keyChain)
 
virtual ~FibEnumerationPublisher ()
 
- Public Member Functions inherited from nfd::SegmentPublisher< AppFace >
 SegmentPublisher (AppFace &face, const Name &prefix, ndn::KeyChain &keyChain)
 
virtual ~SegmentPublisher ()
 
void publish ()
 

Protected Member Functions

virtual size_t generate (ndn::EncodingBuffer &outBuffer)
 In a derived class, write the octets into outBuffer. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from nfd::SegmentPublisher< AppFace >
static size_t getMaxSegmentSize ()
 

Detailed Description

Definition at line 36 of file fib-enumeration-publisher.hpp.

Constructor & Destructor Documentation

nfd::FibEnumerationPublisher::FibEnumerationPublisher ( const Fib fib,
AppFace face,
const Name &  prefix,
ndn::KeyChain &  keyChain 
)

Definition at line 35 of file fib-enumeration-publisher.cpp.

nfd::FibEnumerationPublisher::~FibEnumerationPublisher ( )
virtual

Definition at line 44 of file fib-enumeration-publisher.cpp.

Member Function Documentation

size_t nfd::FibEnumerationPublisher::generate ( ndn::EncodingBuffer &  outBuffer)
protectedvirtual

In a derived class, write the octets into outBuffer.

Todo:
Enable use of Fib::const_reverse_iterator (when it is available)

Implements nfd::SegmentPublisher< AppFace >.

Definition at line 49 of file fib-enumeration-publisher.cpp.

References nfd::Fib::begin(), nfd::Fib::end(), nfd::fib::NextHop::getCost(), nfd::fib::NextHop::getFace(), nfd::fib::Entry::getNextHops(), nfd::fib::Entry::getPrefix(), ns3::ndn::Name, NFD_LOG_DEBUG, and nfd::fib::NextHop::setCost().


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