X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b9d349f4e630752232d93f23b5cb3c33e02e0d05..bb60211deea857d1f67b2613bc34f38babaeb53b:/src/kernel/EngineImpl.hpp diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index 3e1585dff6..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; @@ -51,7 +47,8 @@ public: * @param model Pointer to model * @param list List of dependencies for this model */ - void add_model(std::shared_ptr model, std::vector&& dep_models); + void add_model(std::shared_ptr model, + const std::vector& dep_models = {}); /** @brief Get list of all models managed by this engine */ const std::vector& get_all_models() const { return models_; }