Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Start snake_casing s4u::NetZone
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 30 May 2018 16:30:16 +0000 (18:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 31 May 2018 09:50:56 +0000 (11:50 +0200)
include/simgrid/s4u/NetZone.hpp
src/kernel/routing/NetZoneImpl.cpp
src/s4u/s4u_Netzone.cpp
src/surf/sg_platf.cpp

index 4fea672..990624a 100644 (file)
@@ -37,8 +37,9 @@ public:
   const std::string& get_name() const { return name_; }
   /** @brief Retrieves the name of that netzone as a C string */
   const char* get_cname() const;
-  NetZone* getFather();
+  NetZone* get_father();
 
+  XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_father()") NetZone* getFather() { return get_father(); }
   XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_name()") const std::string& getName() const { return get_name(); }
   XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_cname()") const char* getCname() const { return get_cname(); }
   XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::add_route()") void addRoute(
index 3dbcfdb..5528e9f 100644 (file)
@@ -169,13 +169,13 @@ static void find_common_ancestors(NetPoint* src, NetPoint* dst,
   NetZoneImpl* current = src->get_englobing_zone();
   while (current != nullptr) {
     path_src.push_back(current);
-    current = static_cast<NetZoneImpl*>(current->getFather());
+    current = static_cast<NetZoneImpl*>(current->get_father());
   }
   std::vector<NetZoneImpl*> path_dst;
   current = dst->get_englobing_zone();
   while (current != nullptr) {
     path_dst.push_back(current);
-    current = static_cast<NetZoneImpl*>(current->getFather());
+    current = static_cast<NetZoneImpl*>(current->get_father());
   }
 
   /* (3) find the common father.
index da67bc6..5e1387a 100644 (file)
@@ -66,7 +66,7 @@ const char* NetZone::get_cname() const
 {
   return name_.c_str();
 }
-NetZone* NetZone::getFather()
+NetZone* NetZone::get_father()
 {
   return father_;
 }
index cff7f9e..416a7a1 100644 (file)
@@ -626,7 +626,7 @@ void sg_platf_new_Zone_seal()
   xbt_assert(current_routing, "Cannot seal the current AS: none under construction");
   current_routing->seal();
   simgrid::s4u::NetZone::onSeal(*current_routing);
-  current_routing = static_cast<simgrid::kernel::routing::NetZoneImpl*>(current_routing->getFather());
+  current_routing = static_cast<simgrid::kernel::routing::NetZoneImpl*>(current_routing->get_father());
 }
 
 /** @brief Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) */