Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring with an ActivityImpl::clean_action() method
[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   std::map<std::string, s4u::Host*> hosts_;
17   std::map<std::string, s4u::Link*> links_;
18   std::map<std::string, s4u::Storage*> storages_;
19   std::unordered_map<std::string, routing::NetPoint*> netpoints_;
20   friend s4u::Engine;
21
22 public:
23   EngineImpl() = default;
24
25   EngineImpl(const EngineImpl&) = delete;
26   EngineImpl& operator=(const EngineImpl&) = delete;
27   virtual ~EngineImpl();
28   routing::NetZoneImpl* netzone_root_ = nullptr;
29 };
30
31 } // namespace kernel
32 } // namespace simgrid