/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static xbt::signal<void(PajeEvent&)> on_creation;
static xbt::signal<void(PajeEvent const&)> on_destruction;
static xbt::signal<void(PajeEvent&)> on_creation;
static xbt::signal<void(PajeEvent const&)> on_destruction;
StateEvent(Container* container, Type* type, PajeEventType event_type, EntityValue* value, TIData* extra);
~StateEvent() override { on_destruction(*this); }
bool has_extra() const { return extra_ != nullptr; }
StateEvent(Container* container, Type* type, PajeEventType event_type, EntityValue* value, TIData* extra);
~StateEvent() override { on_destruction(*this); }
bool has_extra() const { return extra_ != nullptr; }
public:
LinkEvent(Container* container, Type* type, PajeEventType event_type, Container* sourceContainer,
public:
LinkEvent(Container* container, Type* type, PajeEventType event_type, Container* sourceContainer,
- const std::string& value, const std::string& key, int size)
- : PajeEvent(container, type, SIMIX_get_clock(), event_type)
+ const std::string& value, const std::string& key, size_t size = static_cast<size_t>(-1))
+ : PajeEvent(container, type, simgrid_get_clock(), event_type)