Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add some const qualifier, needed for later changes.
[simgrid.git] / include / simgrid / kernel / routing / NetPoint.hpp
index 7984766..24b1148 100644 (file)
@@ -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<void(NetPoint*)> on_creation;