NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.h>

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.
 
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 (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void InInterests (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void DropInterests (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void OutNacks (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void InNacks (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void DropNacks (Ptr< const Interest >, Ptr< const Face >)=0
 
virtual void OutData (Ptr< const Data >, bool fromCache, Ptr< const Face >)=0
 
virtual void InData (Ptr< const Data >, Ptr< const Face >)=0
 
virtual void DropData (Ptr< const Data >, Ptr< const Face >)=0
 
virtual void SatisfiedInterests (Ptr< const pit::Entry >)=0
 
virtual void TimedOutInterests (Ptr< const 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 52 of file ndn-l3-tracer.h.

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 41 of file ndn-l3-tracer.cc.

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 55 of file ndn-l3-tracer.cc.

Member Function Documentation

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::L3AggregateTracer, and 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::L3AggregateTracer, and ns3::ndn::L3RateTracer.

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


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