WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Typedefs
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
c
d
e
f
k
n
p
r
s
t
u
Files
File List
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
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::SimulationTimestamp
SimulationTimestamp(T *content)
Constructor.
Definition:
SimulationTimestamp.h:55
wrench::SimulationTimestamp
A time-stamped simulation event stored in SimulationOutput.
Definition:
SimulationTimestamp.h:26
wrench
Definition:
Action.cpp:28
wrench::SimulationTimestamp::getDate
double getDate()
Definition:
SimulationTimestamp.h:44
wrench::SimulationTimestamp::getContent
T *const getContent()
Definition:
SimulationTimestamp.h:35