X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4cd03d236d21b16b2607d67b146cc44b402e7bdd..1847d1441271d076b3de449c8853031ea208ce8f:/src/instr/jedule/jedule_events.cpp
diff --git a/src/instr/jedule/jedule_events.cpp b/src/instr/jedule/jedule_events.cpp
index b7ff520cbd..01ca092499 100644
--- a/src/instr/jedule/jedule_events.cpp
+++ b/src/instr/jedule/jedule_events.cpp
@@ -4,14 +4,11 @@
/* 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. */
-#include "simgrid/jedule/jedule_events.hpp"
-#include "simgrid/jedule/jedule_platform.hpp"
#include "simgrid/jedule/jedule.hpp"
-#include "simgrid/s4u/As.hpp"
-
+#include "simgrid/s4u/NetZone.hpp"
#include "xbt/asserts.h"
-#if HAVE_JEDULE
+#if SIMGRID_HAVE_JEDULE
namespace simgrid{
namespace jedule{
@@ -23,8 +20,8 @@ Event::Event(std::string name, double start_time, double end_time, std::string t
Event::~Event()
{
- if (!this->resource_subsets->empty()){
- for (auto subset: *this->resource_subsets)
+ if (not this->resource_subsets->empty()) {
+ for (auto const& subset : *this->resource_subsets)
delete subset;
delete this->resource_subsets;
}
@@ -54,9 +51,9 @@ void Event::print(FILE *jed_file)
fprintf(jed_file, " \n", this->end_time);
fprintf(jed_file, " \n", this->type.c_str());
- xbt_assert(!this->resource_subsets-> empty());
+ xbt_assert(not this->resource_subsets->empty());
fprintf(jed_file, " \n");
- for (auto subset: *this->resource_subsets) {
+ for (auto const& subset : *this->resource_subsets) {
fprintf(jed_file, " \n");
- if (!this->characteristics_list.empty()){
+ if (not this->characteristics_list.empty()) {
fprintf(jed_file, " \n");
- for (auto ch: this->characteristics_list)
+ for (auto const& ch : this->characteristics_list)
fprintf(jed_file, " \n", ch);
fprintf(jed_file, " \n");
}
- if (!this->info_map.empty()){
+ if (not this->info_map.empty()) {
fprintf(jed_file, " \n");
- for (auto elm: this->info_map)
+ for (auto const& elm : this->info_map)
fprintf(jed_file, " \n",elm.first,elm.second);
fprintf(jed_file, " \n");
}