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

Link-layer tracer. More...

#include <l2-tracer.hpp>

Inheritance diagram for ns3::L2Tracer:
Collaboration diagram for ns3::L2Tracer:

Classes

struct  Stats
 

Public Member Functions

 L2Tracer (Ptr< Node > node)
 
virtual ~L2Tracer ()
 
void Connect ()
 
virtual void PrintHeader (std::ostream &os) const =0
 
virtual void Print (std::ostream &os) const =0
 
virtual void Drop (Ptr< const Packet >)=0
 

Protected Attributes

std::string m_node
 
Ptr< Node > m_nodePtr
 

Detailed Description

Link-layer tracer.

Todo:
Finish implementation

Definition at line 39 of file l2-tracer.hpp.

Constructor & Destructor Documentation

ns3::L2Tracer::L2Tracer ( Ptr< Node >  node)

Definition at line 33 of file l2-tracer.cpp.

References Connect(), m_node, and m_nodePtr.

virtual ns3::L2Tracer::~L2Tracer ( )
inlinevirtual

Definition at line 42 of file l2-tracer.hpp.

References Connect(), Drop(), Print(), and PrintHeader().

Member Function Documentation

void ns3::L2Tracer::Connect ( )

Definition at line 47 of file l2-tracer.cpp.

References Drop(), and m_nodePtr.

Referenced by L2Tracer(), and ~L2Tracer().

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

Implemented in ns3::L2RateTracer.

Referenced by ns3::operator<<(), and ~L2Tracer().

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

Implemented in ns3::L2RateTracer.

Referenced by ns3::operator<<(), and ~L2Tracer().

virtual void ns3::L2Tracer::Drop ( Ptr< const Packet >  )
pure virtual

Implemented in ns3::L2RateTracer.

Referenced by Connect(), and ~L2Tracer().

Member Data Documentation

std::string ns3::L2Tracer::m_node
protected

Definition at line 60 of file l2-tracer.hpp.

Referenced by L2Tracer().

Ptr<Node> ns3::L2Tracer::m_nodePtr
protected

Definition at line 61 of file l2-tracer.hpp.

Referenced by Connect(), and L2Tracer().


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