X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..cdf6a962eb4e88efbed3df9c41343adabcf09e6c:/include/simgrid/kernel/routing/NetZoneImpl.hpp diff --git a/include/simgrid/kernel/routing/NetZoneImpl.hpp b/include/simgrid/kernel/routing/NetZoneImpl.hpp index 260661c2d8..ef9b53c363 100644 --- a/include/simgrid/kernel/routing/NetZoneImpl.hpp +++ b/include/simgrid/kernel/routing/NetZoneImpl.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -51,15 +51,17 @@ class XBT_PUBLIC NetZoneImpl { friend simgrid::kernel::EngineImpl; // it destroys netRoot_ protected: - explicit NetZoneImpl(NetZoneImpl* father, std::string name, resource::NetworkModel* network_model); + explicit NetZoneImpl(NetZoneImpl* father, const std::string& name, resource::NetworkModel* network_model); + NetZoneImpl(const NetZoneImpl&) = delete; + NetZoneImpl& operator=(const NetZoneImpl&) = delete; virtual ~NetZoneImpl(); public: s4u::NetZone* get_iface() { return &piface_; } - /** @brief Make an host within that NetZone */ - simgrid::s4u::Host* create_host(const char* name, std::vector* speed_per_pstate, int core_count, - std::map* props); + /** @brief Make a host within that NetZone */ + simgrid::s4u::Host* create_host(const char* name, const std::vector& speed_per_pstate, int core_count, + const std::map* props); /** @brief Creates a new route in this NetZone */ virtual void add_bypass_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, NetPoint* gw_dst, std::vector& link_list, bool symmetrical);