X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3fa21a47ddcd5c5cbdd59a45dbcc4686f08dce6..c8f4cd32fa6bfe50360ed8c9f61aa43b33d4e005:/src/instr/jedule/jedule_platform.cpp diff --git a/src/instr/jedule/jedule_platform.cpp b/src/instr/jedule/jedule_platform.cpp index 47919e0e22..372c9c263a 100644 --- a/src/instr/jedule/jedule_platform.cpp +++ b/src/instr/jedule/jedule_platform.cpp @@ -24,8 +24,7 @@ Subset::Subset(int start_idx, int end_idx, Container* parent) nres=end_idx-start_idx+1; } - -Container::Container(std::string name): name(name) +Container::Container(const std::string& name) : name(name) { container_name2container.insert({this->name, this}); } @@ -50,8 +49,6 @@ void Container::add_resources(std::vector hosts) this->children.clear(); this->last_id_ = 0; - //FIXME do we need to sort?: xbt_dynar_sort_strings(host_names); - for (auto const& host : hosts) { const char *host_name = sg_host_get_name(host); this->name2id.insert({host_name, this->last_id_}); @@ -71,7 +68,7 @@ void Container::create_hierarchy(sg_netzone_t from_as) this->add_resources(table); } else { for (auto const& nz : from_as->get_children()) { - jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->get_cname())); + jed_container_t child_container = new simgrid::jedule::Container(nz->get_name()); this->add_child(child_container); child_container->create_hierarchy(nz); }