Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make ActorImpl::context_ a std::unique_ptr.
[simgrid.git] / src / kernel / EngineImpl.hpp
1 /* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #include <simgrid/s4u/NetZone.hpp>
7
8 #include <map>
9 #include <string>
10 #include <unordered_map>
11
12 namespace simgrid {
13 namespace kernel {
14
15 class EngineImpl {
16 public:
17   EngineImpl();
18   EngineImpl(const EngineImpl&) = delete;
19   EngineImpl& operator=(const EngineImpl&) = delete;
20   virtual ~EngineImpl();
21   kernel::routing::NetZoneImpl* netzone_root_ = nullptr;
22
23 private:
24   std::map<std::string, simgrid::s4u::Host*> hosts_;
25   std::map<std::string, simgrid::s4u::Link*> links_;
26   std::map<std::string, simgrid::s4u::Storage*> storages_;
27   std::unordered_map<std::string, simgrid::kernel::routing::NetPoint*> netpoints_;
28   friend simgrid::s4u::Engine;
29 };
30 }
31 }