#include <packettracer.h>
Collaboration diagram for PktTracer:
Public Member Functions | |
PktTracer () | |
void | addTracer (Tracer *newTr) |
void | trace (Packet *p, SAP *sap) |
Private Attributes | |
Tracer * | tr_ |
Definition at line 157 of file packettracer.h.
PktTracer::PktTracer | ( | ) |
PktTracer constructor. It reset the tr_ class attribute
Definition at line 82 of file packettracer.cc.
References tr_.
void PktTracer::addTracer | ( | Tracer * | newTr | ) |
This method adds a new tracer sorted by level ascending. A new tracer of the same level is inserted in tail of the already inserted tracer
newTr | pointer to the tracer which has to be added |
Definition at line 91 of file packettracer.cc.
References Tracer::level(), Tracer::next(), and tr_.
Referenced by SAP::addTracer().
Here is the call graph for this function:
void PktTracer::trace | ( | Packet * | p, | |
SAP * | sap | |||
) |
Begin the trace of the packet that is crossing the SAP. The Packet will pass through all the Tracer objects in the list.
p | pointer to the Packet to trace | |
sap | pointer to the SAP instance which call this method (useful to write in the BaseTrace) |
Definition at line 149 of file packettracer.cc.
References tr_, and Tracer::trace().
Referenced by Bin::drop(), and SAP::trace().
Here is the call graph for this function:
Tracer* PktTracer::tr_ [private] |
First Tracer of the Tracer objects list
Definition at line 190 of file packettracer.h.
Referenced by addTracer(), PktTracer(), and trace().