Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
EngineImpl::shutdown doesn't have to be static
[simgrid.git] / src / kernel / EngineImpl.hpp
index 3cd04d4..63d2c44 100644 (file)
@@ -78,14 +78,14 @@ class EngineImpl {
   friend s4u::Engine;
 
 public:
-  explicit EngineImpl(int* argc, char** argv);
+  EngineImpl() = default;
 
   /* Currently, only one instance is allowed to exist. This is why you can't copy or move it */
 #ifndef DOXYGEN
   EngineImpl(const EngineImpl&) = delete;
   EngineImpl& operator=(const EngineImpl&) = delete;
   virtual ~EngineImpl();
-  static void shutdown();
+  void shutdown();
 #endif
 
   void initialize(int* argc, char** argv);
@@ -137,6 +137,9 @@ public:
     else
       return res->second;
   }
+
+  routing::NetZoneImpl* get_netzone_root() const { return netzone_root_; }
+
   void add_daemon(actor::ActorImpl* d) { daemons_.insert(d); }
   void remove_daemon(actor::ActorImpl* d);
   void add_actor_to_run_list(actor::ActorImpl* actor);