PktTracer Class Reference

#include <packettracer.h>

Collaboration diagram for PktTracer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PktTracer ()
void addTracer (Tracer *newTr)
void trace (Packet *p, SAP *sap)

Private Attributes

Tracertr_

Detailed Description

The PktTracer class contains a list of Tracer. A Tracer is added to a single linked list using an ascending order of Tracer level. If two or more Tracer abjects have the same level, the PktTrace insert the new Tracer after all the Tracer with the same level.

See also:
Tracer

Definition at line 157 of file packettracer.h.


Constructor & Destructor Documentation

PktTracer::PktTracer (  ) 

PktTracer constructor. It reset the tr_ class attribute

See also:
tr_

Definition at line 82 of file packettracer.cc.

References tr_.


Member Function Documentation

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

Parameters:
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.

Parameters:
p pointer to the Packet to trace
sap pointer to the SAP instance which call this method (useful to write in the BaseTrace)
See also:
ConnectorTrace, SAP

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:


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:51:59 2008 for NS-MIRACLE library by  doxygen 1.5.2