Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless reformating to ease my grepping for stuff to snake_case
[simgrid.git] / include / simgrid / s4u / NetZone.hpp
index 4b485bb..5229b92 100644 (file)
@@ -37,12 +37,12 @@ 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* get_father();
+  std::vector<NetZone*>* get_children(); // Sub netzones
 
   std::vector<Host*> get_all_hosts();
-
-  std::vector<NetZone*>* getChildren();             // Sub netzones
-  int getHostCount();
+  int get_host_count();
 
 private:
   std::unordered_map<std::string, std::string> properties_;
@@ -73,7 +73,7 @@ public:
   static simgrid::xbt::signal<void(NetZone&)> on_seal;
 
 private:
-  // our content, as known to our graph routing algorithm (maps vertexId -> vertex)
+  // our content, as known to our graph routing algorithm (maps vertex_id -> vertex)
   std::vector<kernel::routing::NetPoint*> vertices_;
 
 protected:
@@ -104,8 +104,7 @@ public: // Deprecation wrappers
   {
     add_bypass_route(src, dst, gw_src, gw_dst, link_list, symmetrical);
   }
-  XBT_ATTRIB_DEPRECATED_v323(
-      "Please use NetZone::get_properties()") std::unordered_map<std::string, std::string>* getProperties()
+  XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_properties()") std::unordered_map<std::string, std::string>* getProperties()
   {
     return get_properties();
   }
@@ -126,8 +125,13 @@ public: // Deprecation wrappers
   {
     return get_vertices();
   }
+  XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_host_count()") int getHostCount() { return get_host_count(); }
   XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_all_hosts()") void getHosts(
       std::vector<s4u::Host*>* whereto); // retrieve my content as a vector of hosts
+  XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_children()") std::vector<NetZone*>* getChildren()
+  {
+    return get_children();
+  }
 };
 }
 }; // Namespace simgrid::s4u