X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4f595ad4a6a3cca52474d9ce1d61567a0fc68e62..65beede857f93e33c96e544f76b93793c973dc10:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index 0d4aee070e..e13aceeaf5 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -157,135 +157,6 @@ public: private: kernel::EngineImpl* const pimpl; static Engine* instance_; - - //////////////// Deprecated functions -#ifndef DOXYGEN -public: - /** @deprecated See Engine::load_platform() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::load_platform()") void loadPlatform(const std::string& platf) - { - load_platform(platf); - } - /** @deprecated See Engine::register_function() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_function()") void registerFunction(const std::string& name, - int (*code)(int, char**)) - { - register_function(name, code); - } - /** @deprecated See Engine::register_default() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_default()") void registerDefault(int (*code)(int, char**)) - { - register_default(code); - } - /** @deprecated See Engine::register_actor() */ - template - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_actor()") void registerFunction(const std::string& name) - { - register_actor(name); - } - /** @deprecated See Engine::register_actor() */ - template - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_actor()") void registerFunction(const std::string& name, - F code) - { - register_actor(name, code); - } - - /** @deprecated See Engine::load_deployment() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::load_deployment()") void loadDeployment(const std::string& deploy) - { - load_deployment(deploy); - } - /** @deprecated See Engine::host_by_name() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::host_by_name()") simgrid::s4u::Host* hostByName( - const std::string& name) - { - return host_by_name(name); - } - /** @deprecated See Engine::host_by_name_or_null() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::host_by_name_or_null()") simgrid::s4u::Host* hostByNameOrNull( - const std::string& name) - { - return host_by_name_or_null(name); - } - /** @deprecated See Engine::storage_by_name() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::storage_by_name()") simgrid::s4u::Storage* storageByName( - const std::string& name) - { - return storage_by_name(name); - } - /** @deprecated See Engine::storage_by_name_or_null() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::storage_by_name_or_null()") simgrid::s4u::Storage* storageByNameOrNull( - const std::string& name) - { - return storage_by_name_or_null(name); - } - - /** @deprecated See Engine::get_host_count() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_host_count()") size_t getHostCount() { return get_host_count(); } - /** @deprecated See Engine::get_all_hosts() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_all_hosts()") std::vector getAllHosts() - { - return get_all_hosts(); - } - /** @deprecated See Engine::get_link_count() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_link_count()") size_t getLinkCount() { return get_link_count(); } - /** @deprecated See Engine::get_link_list() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_link_list()") std::vector getAllLinks() - { - return get_all_links(); - } - /** @deprecated See Engine::get_all_storages() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_all_storages()") std::vector getAllStorages() - { - return get_all_storages(); - } - /** @deprecated See Engine::get_clock() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_clock()") static double getClock() { return get_clock(); } - /** @deprecated See Engine::get_all_netpoints() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_all_netpoints()") void getNetpointList( - std::vector* list); - /** @deprecated See Engine::netpoint_by_name_or_null() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::netpoint_by_name_or_null()") - simgrid::kernel::routing::NetPoint* getNetpointByNameOrNull(const std::string& name) - { - return netpoint_by_name_or_null(name); - } - /** @deprecated See Engine::get_netzone_root() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_netzone_root()") simgrid::s4u::NetZone* getNetRoot() - { - return get_netzone_root(); - } - /** @deprecated See Engine::netzone_by_name_or_null() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::netzone_by_name_or_null()") - simgrid::s4u::NetZone* getNetzoneByNameOrNull(const std::string& name) - { - return netzone_by_name_or_null(name); - } - /** @deprecated See Engine::filter_netzones_by_type() */ - template - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::filter_netzones_by_type()") void getNetzoneByType( - std::vector* whereto) - { - get_filtered_netzones_recursive(get_netzone_root(), whereto); - } - - /** @deprecated See Engine::get_instance() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_instance()") static s4u::Engine* getInstance() - { - return get_instance(); - } - /** @deprecated See Engine::is_initialized() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::is_initialized()") static bool isInitialized() - { - return is_initialized(); - } - /** @deprecated See Engine::set_config() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Engine::set_config()") void setConfig(const std::string& str) - { - set_config(str); - } -#endif }; /** Callback fired when the platform is created (ie, the xml file parsed),