X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..e04e3ae8fec7cb28eef7705e4aebf2370e6fdd6a:/src/kernel/EngineImpl.hpp diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index 58c0b63feb..c45e02fd2e 100644 --- a/src/kernel/EngineImpl.hpp +++ b/src/kernel/EngineImpl.hpp @@ -3,9 +3,9 @@ /* 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. */ -#include - #include +#include +#include #include #include @@ -13,17 +13,26 @@ namespace simgrid { namespace kernel { class EngineImpl { + std::map hosts_; + std::map links_; + std::map storages_; + std::unordered_map netpoints_; + friend s4u::Engine; + public: - EngineImpl(); + EngineImpl() = default; + + EngineImpl(const EngineImpl&) = delete; + EngineImpl& operator=(const EngineImpl&) = delete; virtual ~EngineImpl(); - kernel::routing::NetZoneImpl* netzone_root_ = nullptr; - -private: - std::map hosts_; - std::map links_; - std::map storages_; - std::unordered_map netpoints_; - friend simgrid::s4u::Engine; + + void load_deployment(const std::string& file); + void register_function(const std::string& name, xbt_main_func_t code); + void register_function(const std::string& name, void (*code)(std::vector)); + void register_default(xbt_main_func_t code); + + routing::NetZoneImpl* netzone_root_ = nullptr; }; -} -} + +} // namespace kernel +} // namespace simgrid