Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

TimeStamper< IntType > Struct Template Reference

#include <TimeStampedEvent.hh>

List of all members.

Public Types

typedef IntType DataType
 The type of data holding the timestamp.


Static Public Methods

IntType getTimeStamp ()
bool leftOlder (IntType left, IntType right)
 Return true only if left is strictly older than right.


Detailed Description

template<typename IntType>
struct TimeStamper< IntType >

Example of time stamper. It requires only one typedef (DataType), and one member function (getTimeStamp). The extra member function, used for ordering two time stamps, is only necessary if your code does a call to the ordering functions of TimeStampedEvent.
Note:

Definition at line 36 of file TimeStampedEvent.hh.


Member Function Documentation

template<typename IntType>
IntType TimeStamper< IntType >::getTimeStamp   [static]
 

Get the time stamp. This is where we define how to implement time stamping. Here, we simply increment a counter.

Definition at line 52 of file TimeStampedEvent.hh.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 16 16:56:24 2003 for C++ Event Handling Template Library by doxygen1.2.18