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>
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
SimulationTimestamp(T *content)
Constructor.
Definition: SimulationTimestamp.h:55
A time-stamped simulation event stored in SimulationOutput.
Definition: SimulationTimestamp.h:26
Definition: Alarm.cpp:20
double getDate()
Definition: SimulationTimestamp.h:44
T *const getContent()
Definition: SimulationTimestamp.h:35