1 /* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include <simgrid/s4u/NetZone.hpp>
8 #include <simgrid/simix.hpp>
10 #include <unordered_map>
16 std::map<std::string, s4u::Host*> hosts_;
17 std::map<std::string, resource::LinkImpl*> links_;
18 std::map<std::string, resource::StorageImpl*> storages_;
19 std::unordered_map<std::string, routing::NetPoint*> netpoints_;
23 EngineImpl() = default;
25 EngineImpl(const EngineImpl&) = delete;
26 EngineImpl& operator=(const EngineImpl&) = delete;
27 virtual ~EngineImpl();
29 void load_deployment(const std::string& file);
30 void register_function(const std::string& name, xbt_main_func_t code);
31 void register_function(const std::string& name, void (*code)(std::vector<std::string>));
32 void register_default(xbt_main_func_t code);
34 routing::NetZoneImpl* netzone_root_ = nullptr;
38 } // namespace simgrid