X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/89f6d35abcb0216d91af8375fc48a027ff372a08..fde63ab63d776f60717181c36961cde86cb6d23d:/include/simgrid/kernel/routing/NetPoint.hpp diff --git a/include/simgrid/kernel/routing/NetPoint.hpp b/include/simgrid/kernel/routing/NetPoint.hpp index 7984766ca9..24b11488a3 100644 --- a/include/simgrid/kernel/routing/NetPoint.hpp +++ b/include/simgrid/kernel/routing/NetPoint.hpp @@ -36,9 +36,9 @@ public: /** @brief the NetZone in which this NetPoint is included */ NetZoneImpl* get_englobing_zone() { return englobing_zone_; } - bool is_netzone() { return component_type_ == Type::NetZone; } - bool is_host() { return component_type_ == Type::Host; } - bool is_router() { return component_type_ == Type::Router; } + bool is_netzone() const { return component_type_ == Type::NetZone; } + bool is_host() const { return component_type_ == Type::Host; } + bool is_router() const { return component_type_ == Type::Router; } static simgrid::xbt::signal on_creation;