PacketHistory Class Reference

Packet history. Added packets are copied. More...

#include <PacketHistory.hh>

List of all members.

Public Member Functions

void addCopy (const Packet *pkt)
 Copy a packet and add it to history.
const Packetat (unsigned int i) const
 Return the (i-1)th packet of history.
unsigned int size () const
 Return the number of packets in history.

Detailed Description

Packet history. Added packets are copied.

The only allowed modification is to add packets.


Member Function Documentation

void PacketHistory::addCopy ( const Packet pkt  )  [inline]

Copy a packet and add it to history.

Parameters:
pkt Packet to add a copy to history.

References Packet::data_size.

Referenced by BaseCRules::onEvent(), and BaseSRules::sendPacket().

const Packet * PacketHistory::at ( unsigned int  i  )  const [inline]

Return the (i-1)th packet of history.

Parameters:
i Index of the packet in history.
Returns:
The (i-1)th packet of history.
unsigned int PacketHistory::size (  )  const [inline]

Return the number of packets in history.

Returns:
The number of packets in history.

The documentation for this class was generated from the following file:
Generated on Mon Apr 5 21:17:43 2010 for Stechec/TBT by  doxygen 1.6.3