wrench::SimulationTrace< T > Class Template Reference

A template class to represent a trace of timestamps. More...

#include <SimulationTrace.h>

Inheritance diagram for wrench::SimulationTrace< T >:

Public Member Functions

 ~SimulationTrace ()
 Destructor.
 
void addTimestamp (SimulationTimestamp< T > *timestamp)
 Append a timestamp to the trace. More...
 
std::vector< SimulationTimestamp< T > * > getTrace ()
 Retrieve the trace as a vector of timestamps. More...
 

Detailed Description

template<class T>
class wrench::SimulationTrace< T >

A template class to represent a trace of timestamps.

Template Parameters
aparticular SimulationTimestampXXXX class (defined in SimulationTimestampTypes.h)

Member Function Documentation

◆ addTimestamp()

template<class T >
void wrench::SimulationTrace< T >::addTimestamp ( SimulationTimestamp< T > *  timestamp)
inline

Append a timestamp to the trace.

Parameters
timestampa pointer to a SimulationTimestamp<T> object
Template Parameters
aparticular SimulationTimestampXXXX class (defined in SimulationTimestampTypes.h)

◆ getTrace()

template<class T >
std::vector<SimulationTimestamp<T> *> wrench::SimulationTrace< T >::getTrace ( )
inline

Retrieve the trace as a vector of timestamps.

Template Parameters
aparticular SimulationTimestampXXXX class (defined in SimulationTimestampTypes.h)
Returns
a vector of pointers to SimulationTimestamp<T> objects

The documentation for this class was generated from the following file: