X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/537b55f6d4bf8ede2526c2bd6cf79bd38b465dac..6bc18b576fa4a890d8b9916d292ca67dfbf60dd3:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index 27445d9702..6bb6e896ca 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -53,7 +53,8 @@ public: /** Registers the main function of an actor that will be launched from the deployment file */ void register_function(std::string name, int (*code)(int, char**)); - // FIXME: provide a register_function(std::string, std::vector) + /** Registers the main function of an actor that will be launched from the deployment file */ + void register_function(std::string name, void (*code)(std::vector)); /** Registers a function as the default main function of actors * @@ -83,23 +84,26 @@ public: void load_deployment(std::string deploy); protected: - friend s4u::Host; - friend s4u::Link; - friend s4u::Storage; +#ifndef DOXYGEN + friend Host; + friend Link; + friend Storage; friend kernel::routing::NetPoint; friend kernel::routing::NetZoneImpl; friend kernel::resource::LinkImpl; - void host_register(std::string name, simgrid::s4u::Host* host); + void host_register(std::string name, Host* host); void host_unregister(std::string name); - void link_register(std::string name, simgrid::s4u::Link* link); + void link_register(std::string name, Link* link); void link_unregister(std::string name); - void storage_register(std::string name, simgrid::s4u::Storage* storage); + void storage_register(std::string name, Storage* storage); void storage_unregister(std::string name); void netpoint_register(simgrid::kernel::routing::NetPoint* card); void netpoint_unregister(simgrid::kernel::routing::NetPoint* card); +#endif /*DOXYGEN*/ public: size_t get_host_count(); + /** @brief Returns the list of all hosts found in the platform */ std::vector get_all_hosts(); std::vector get_filtered_hosts(std::function filter); simgrid::s4u::Host* host_by_name(std::string name);