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

Base class for network-layer (incoming/outgoing Interests and Data) tracing of NDN stack. More...

#include <ndn-l3-tracer.hpp>

Inheritance diagram for ns3::ndn::L3Tracer:
Collaboration diagram for ns3::ndn::L3Tracer:

Classes

struct  Stats
 

Public Member Functions

 L3Tracer (Ptr< Node > node)
 Trace constructor that attaches to the node using node pointer. More...
 
 L3Tracer (const std::string &node)
 Trace constructor that attaches to the node using node name. More...
 
virtual ~L3Tracer ()
 Destructor. More...
 
virtual void PrintHeader (std::ostream &os) const =0
 Print head of the trace (e.g., for post-processing) More...
 
virtual void Print (std::ostream &os) const =0
 Print current trace data. More...
 

Protected Member Functions

void Connect ()
 
virtual void OutInterests (const Interest &, const Face &)=0
 
virtual void InInterests (const Interest &, const Face &)=0
 
virtual void OutData (const Data &, const Face &)=0
 
virtual void InData (const Data &, const Face &)=0
 
virtual void OutNack (const lp::Nack &nack, const Face &)=0
 
virtual void InNack (const lp::Nack &, const Face &)=0
 
virtual void SatisfiedInterests (const nfd::pit::Entry &, const Face &, const Data &)=0
 
virtual void TimedOutInterests (const nfd::pit::Entry &)=0
 

Protected Attributes

std::string m_node
 
Ptr< Nodem_nodePtr
 

Detailed Description

Base class for network-layer (incoming/outgoing Interests and Data) tracing of NDN stack.

Definition at line 40 of file ndn-l3-tracer.hpp.

Constructor & Destructor Documentation

◆ L3Tracer() [1/2]

ns3::ndn::L3Tracer::L3Tracer ( Ptr< Node node)

Trace constructor that attaches to the node using node pointer.

Parameters
nodepointer to the node

Definition at line 34 of file ndn-l3-tracer.cpp.

References Connect(), m_node, and m_nodePtr.

◆ L3Tracer() [2/2]

ns3::ndn::L3Tracer::L3Tracer ( const std::string &  node)

Trace constructor that attaches to the node using node name.

Parameters
nodeNamename of the node registered using Names::Add

Definition at line 47 of file ndn-l3-tracer.cpp.

References Connect().

◆ ~L3Tracer()

ns3::ndn::L3Tracer::~L3Tracer ( )
virtual

Destructor.

Definition at line 53 of file ndn-l3-tracer.cpp.

Member Function Documentation

◆ PrintHeader()

virtual void ns3::ndn::L3Tracer::PrintHeader ( std::ostream &  os) const
pure virtual

Print head of the trace (e.g., for post-processing)

Parameters
osreference to output stream

Implemented in ns3::ndn::L3RateTracer.

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

◆ Print()

virtual void ns3::ndn::L3Tracer::Print ( std::ostream &  os) const
pure virtual

Print current trace data.

Parameters
osreference to output stream

Implemented in ns3::ndn::L3RateTracer.

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

◆ Connect()

void ns3::ndn::L3Tracer::Connect ( )
protected

◆ OutInterests()

virtual void ns3::ndn::L3Tracer::OutInterests ( const Interest &  ,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ InInterests()

virtual void ns3::ndn::L3Tracer::InInterests ( const Interest &  ,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ OutData()

virtual void ns3::ndn::L3Tracer::OutData ( const Data &  ,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ InData()

virtual void ns3::ndn::L3Tracer::InData ( const Data &  ,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ OutNack()

virtual void ns3::ndn::L3Tracer::OutNack ( const lp::Nack nack,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ InNack()

virtual void ns3::ndn::L3Tracer::InNack ( const lp::Nack ,
const Face  
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ SatisfiedInterests()

virtual void ns3::ndn::L3Tracer::SatisfiedInterests ( const nfd::pit::Entry ,
const Face ,
const Data &   
)
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

◆ TimedOutInterests()

virtual void ns3::ndn::L3Tracer::TimedOutInterests ( const nfd::pit::Entry )
protectedpure virtual

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

Member Data Documentation

◆ m_node

std::string ns3::ndn::L3Tracer::m_node
protected

Definition at line 104 of file ndn-l3-tracer.hpp.

Referenced by L3Tracer().

◆ m_nodePtr

Ptr<Node> ns3::ndn::L3Tracer::m_nodePtr
protected

Definition at line 105 of file ndn-l3-tracer.hpp.

Referenced by Connect(), and L3Tracer().


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