Base class for network-layer (incoming/outgoing Interests and Data) tracing of NDN stack. More...
#include <ndn-l3-tracer.hpp>
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 |
Base class for network-layer (incoming/outgoing Interests and Data) tracing of NDN stack.
Definition at line 46 of file ndn-l3-tracer.hpp.
ns3::ndn::L3Tracer::L3Tracer | ( | Ptr< Node > | node | ) |
Trace constructor that attaches to the node using node pointer.
node | pointer to the node |
Definition at line 34 of file ndn-l3-tracer.cpp.
ns3::ndn::L3Tracer::L3Tracer | ( | const std::string & | node | ) |
Trace constructor that attaches to the node using node name.
nodeName | name of the node registered using Names::Add |
Definition at line 47 of file ndn-l3-tracer.cpp.
References Connect().
|
virtual |
Destructor.
Definition at line 53 of file ndn-l3-tracer.cpp.
|
pure virtual |
Print head of the trace (e.g., for post-processing)
os | reference to output stream |
Implemented in ns3::ndn::L3RateTracer.
Referenced by ns3::ndn::operator<<().
|
pure virtual |
Print current trace data.
os | reference to output stream |
Implemented in ns3::ndn::L3RateTracer.
Referenced by ns3::ndn::operator<<().
|
protected |
Definition at line 56 of file ndn-l3-tracer.cpp.
References InData(), InInterests(), m_nodePtr, OutData(), OutInterests(), SatisfiedInterests(), and TimedOutInterests().
Referenced by L3Tracer().
|
protectedpure virtual |
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
|
protectedpure virtual |
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
|
protectedpure virtual |
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
|
protectedpure virtual |
Implemented in ns3::ndn::L3RateTracer.
Referenced by Connect().
|
protected |
Definition at line 104 of file ndn-l3-tracer.hpp.
Referenced by L3Tracer().
|
protected |
Definition at line 105 of file ndn-l3-tracer.hpp.
Referenced by Connect(), and L3Tracer().