/* 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 <map>
+#ifndef SIMGRID_KERNEL_ENGINEIMPL_HPP
+#define SIMGRID_KERNEL_ENGINEIMPL_HPP
+
#include <simgrid/s4u/Engine.hpp>
#include <simgrid/s4u/NetZone.hpp>
#include <simgrid/simix.hpp>
+
+#include <map>
#include <string>
#include <unordered_map>
EngineImpl& operator=(const EngineImpl&) = delete;
virtual ~EngineImpl();
- void load_deployment(const std::string& file);
- void register_function(const std::string& name, actor::ActorCodeFactory code);
- void register_default(actor::ActorCodeFactory code);
+ void load_deployment(const std::string& file) const;
+ void register_function(const std::string& name, const actor::ActorCodeFactory& code);
+ void register_default(const actor::ActorCodeFactory& code);
routing::NetZoneImpl* netzone_root_ = nullptr;
static EngineImpl* get_instance() { return simgrid::s4u::Engine::get_instance()->pimpl; }
} // namespace kernel
} // namespace simgrid
+
+#endif