WRENCH
1.10
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
simulation
SimulationTimestamp.h
1
10
#ifndef WRENCH_SIMULATIONTIMESTAMP_H
11
#define WRENCH_SIMULATIONTIMESTAMP_H
12
13
14
#include <iostream>
15
#include "wrench/simgrid_S4U_util/S4U_Simulation.h"
16
#include "wrench/simulation/SimulationTimestampTypes.h"
17
18
namespace
wrench
{
19
25
template
<
class
T>
26
class
SimulationTimestamp
{
27
28
public
:
29
35
T *
const
getContent
() {
36
return
this->content.get();
37
}
38
44
double
getDate
() {
45
return
this->
getContent
()->getDate();
46
}
47
/***********************/
49
/***********************/
50
55
SimulationTimestamp
(T *content) {
56
this->content = std::unique_ptr<T>(content);
57
}
58
59
/***********************/
61
/***********************/
62
63
private
:
64
std::unique_ptr<T>content;
65
};
66
67
};
68
69
#endif //WRENCH_SIMULATIONTIMESTAMP_H
wrench::SimulationTimestamp
A time-stamped simulation event stored in SimulationOutput.
Definition:
SimulationTimestamp.h:26
wrench
Definition:
Alarm.cpp:20
wrench::SimulationTimestamp::getDate
double getDate()
Definition:
SimulationTimestamp.h:44
wrench::SimulationTimestamp::getContent
T *const getContent()
Definition:
SimulationTimestamp.h:35