X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6be248713757287eb951054a63c9f251d52ee0a..9caf173e476622d309cc5653a83d224d05787cc7:/include/simgrid/kernel/resource/Resource.hpp?ds=sidebyside diff --git a/include/simgrid/kernel/resource/Resource.hpp b/include/simgrid/kernel/resource/Resource.hpp index 7c8c075da2..ee037cd3b7 100644 --- a/include/simgrid/kernel/resource/Resource.hpp +++ b/include/simgrid/kernel/resource/Resource.hpp @@ -38,9 +38,9 @@ public: Model* model() const; /** @brief Get the name of the current Resource */ - const std::string& getName() const; + const std::string& get_name() const; /** @brief Get the name of the current Resource */ - const char* getCname() const; + const char* get_cname() const; bool operator==(const Resource& other) const; @@ -95,7 +95,7 @@ template <> class hash { public: std::size_t operator()(const simgrid::kernel::resource::Resource& r) const { - return (std::size_t)xbt_str_hash(r.getCname()); + return (std::size_t)xbt_str_hash(r.get_cname()); } }; } // namespace std