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
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 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< Node > m_nodePtr
 

Detailed Description

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

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

Constructor & Destructor Documentation

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.

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().

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

Destructor.

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

Member Function Documentation

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

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<<().

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<<().

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

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

Implemented in ns3::ndn::L3RateTracer.

Referenced by Connect().

Member Data Documentation

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

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

Referenced by L3Tracer().

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: