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
rename the plugins from the command line, and document it
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule.cpp
diff --git
a/src/instr/jedule/jedule.cpp
b/src/instr/jedule/jedule.cpp
index
86dbae5
..
475b615
100644
(file)
--- a/
src/instr/jedule/jedule.cpp
+++ b/
src/instr/jedule/jedule.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
6
. The SimGrid Team.
+/* Copyright (c) 2010-201
8
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-14,7
+14,7
@@
namespace jedule {
Jedule::~Jedule() {
delete this->root_container;
Jedule::~Jedule() {
delete this->root_container;
- for (auto
evt
: this->event_set)
+ for (auto
const& evt
: this->event_set)
delete evt;
this->event_set.clear();
}
delete evt;
this->event_set.clear();
}
@@
-27,12
+27,12
@@
void Jedule::addMetaInfo(char *key, char *value) {
}
void Jedule::writeOutput(FILE *file) {
}
void Jedule::writeOutput(FILE *file) {
- if (
!this->event_set.empty())
{
+ if (
not this->event_set.empty())
{
fprintf(file, "<jedule>\n");
fprintf(file, "<jedule>\n");
- if (
!this->meta_info.empty())
{
+ if (
not this->meta_info.empty())
{
fprintf(file, " <jedule_meta>\n");
fprintf(file, " <jedule_meta>\n");
- for (auto
elm
: this->meta_info)
+ for (auto
const& elm
: this->meta_info)
fprintf(file, " <prop key=\"%s\" value=\"%s\" />\n",elm.first,elm.second);
fprintf(file, " </jedule_meta>\n");
}
fprintf(file, " <prop key=\"%s\" value=\"%s\" />\n",elm.first,elm.second);
fprintf(file, " </jedule_meta>\n");
}
@@
-42,8
+42,8
@@
void Jedule::writeOutput(FILE *file) {
fprintf(file, " </platform>\n");
fprintf(file, " <events>\n");
fprintf(file, " </platform>\n");
fprintf(file, " <events>\n");
- for (auto
event :
this->event_set)
-
event->print(file);
+ for (auto
const& event :
this->event_set)
+ event->print(file);
fprintf(file, " </events>\n");
fprintf(file, "</jedule>\n");
fprintf(file, " </events>\n");
fprintf(file, "</jedule>\n");