X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/32dfd65da61704d4f0f7c5e5c91978489c046f33..0facf52013684615c801816de974754778c9474a:/src/kernel/EngineImpl.hpp diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index 04436a4a48..69963c84db 100644 --- a/src/kernel/EngineImpl.hpp +++ b/src/kernel/EngineImpl.hpp @@ -25,11 +25,7 @@ class EngineImpl { std::unordered_map registered_functions; // Maps function names to actor code actor::ActorCodeFactory default_function; // Function to use as a fallback when the provided name matches nothing std::vector models_; - struct ModelStruct { - int prio; - std::shared_ptr ptr; - }; - std::unordered_map models_prio_; + std::unordered_map> models_prio_; routing::NetZoneImpl* netzone_root_ = nullptr; friend s4u::Engine; @@ -52,7 +48,7 @@ public: * @param list List of dependencies for this model */ void add_model(std::shared_ptr model, - std::vector&& dep_models = {}); + const std::vector& dep_models = {}); /** @brief Get list of all models managed by this engine */ const std::vector& get_all_models() const { return models_; }