X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/af72ee01a6a0c01b1a67dc3095f952fd8ab1dd42..b9d349f4e630752232d93f23b5cb3c33e02e0d05:/src/s4u/s4u_Engine.cpp diff --git a/src/s4u/s4u_Engine.cpp b/src/s4u/s4u_Engine.cpp index 0cfdc0754f..cc7fbe191a 100644 --- a/src/s4u/s4u_Engine.cpp +++ b/src/s4u/s4u_Engine.cpp @@ -73,12 +73,24 @@ double Engine::get_clock() return SIMIX_get_clock(); } +void Engine::add_model(std::shared_ptr model, std::vector&& dep_models) +{ + simgrid::kernel::actor::simcall([this, &model, &dep_models] { + pimpl->add_model(std::move(model), std::forward(dep_models)); + }); +} + +const std::vector& Engine::get_all_models() const +{ + return pimpl->get_all_models(); +} + /** * Creates a new platform, including hosts, links, and the routing table. * - * \rst + * @beginrst * See also: :ref:`platform`. - * \endrst + * @endrst */ void Engine::load_platform(const std::string& platf) const { @@ -139,9 +151,9 @@ void Engine::register_function(const std::string& name, const kernel::actor::Act /** Load a deployment file and launch the actors that it contains * - * \rst + * @beginrst * See also: :ref:`deploy`. - * \endrst + * @endrst */ void Engine::load_deployment(const std::string& deploy) const {