A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added platform for ns3 wifi example
[simgrid.git]
/
src
/
instr
/
instr_paje_events.hpp
diff --git
a/src/instr/instr_paje_events.hpp
b/src/instr/instr_paje_events.hpp
index f26a206ec44fe0124f4479f602b285661add0825..2527bd72668b7745d5eff7871690cbafd48eddea 100644
(file)
--- a/
src/instr/instr_paje_events.hpp
+++ b/
src/instr/instr_paje_events.hpp
@@
-8,6
+8,7
@@
#include "src/instr/instr_private.hpp"
#include "src/internal_config.h"
#include "src/instr/instr_private.hpp"
#include "src/internal_config.h"
+#include <memory>
#include <sstream>
#include <string>
#include <sstream>
#include <string>
@@
-42,7
+43,7
@@
class PajeEvent {
Type* type_;
public:
static xbt::signal<void(PajeEvent&)> on_creation;
Type* type_;
public:
static xbt::signal<void(PajeEvent&)> on_creation;
- static xbt::signal<void(PajeEvent&)> on_destruction;
+ static xbt::signal<void(PajeEvent
const
&)> on_destruction;
double timestamp_;
e_event_type eventType_;
double timestamp_;
e_event_type eventType_;
@@
-78,9
+79,9
@@
class StateEvent : public PajeEvent {
std::unique_ptr<TIData> extra_;
public:
std::unique_ptr<TIData> extra_;
public:
- static xbt::signal<void(StateEvent&)> on_destruction;
+ static xbt::signal<void(StateEvent
const
&)> on_destruction;
StateEvent(Container* container, Type* type, e_event_type event_type, EntityValue* value, TIData* extra);
StateEvent(Container* container, Type* type, e_event_type event_type, EntityValue* value, TIData* extra);
- ~StateEvent() { on_destruction(*this); }
+ ~StateEvent()
override
{ on_destruction(*this); }
bool has_extra() const { return extra_ != nullptr; }
void print() override;
};
bool has_extra() const { return extra_ != nullptr; }
void print() override;
};