+ register_default([code](std::vector<std::string> args) { return xbt::wrap_main(code, std::move(args)); });
+}
+void Engine::register_default(const kernel::actor::ActorCodeFactory& code)
+{
+ simgrid::kernel::actor::simcall([this, &code]() { pimpl->register_default(code); });
+}
+
+void Engine::register_function(const std::string& name, const kernel::actor::ActorCodeFactory& code)
+{
+ simgrid::kernel::actor::simcall([this, name, &code]() { pimpl->register_function(name, code); });
+}
+
+/** Load a deployment file and launch the actors that it contains
+ *
+ * \rst
+ * See also: :ref:`deploy`.
+ * \endrst
+ */
+void Engine::load_deployment(const std::string& deploy) const
+{
+ pimpl->load_deployment(deploy);
+}
+
+/** Returns the amount of hosts in the platform */
+size_t Engine::get_host_count() const
+{
+ return pimpl->hosts_.size();