Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small cleanups in s4u::hosts: improve doc, kill useless function
[simgrid.git] / include / simgrid / s4u / As.hpp
index b79afa4..445424f 100644 (file)
@@ -33,12 +33,12 @@ XBT_PUBLIC_CLASS As {
 protected:
   friend simgrid::surf::AsImpl;
 
-  As(const char *name);
+  explicit As(const char *name);
   virtual ~As();
   
 public:
   /** @brief Seal your AS once you're done adding content, and before routing stuff through it */
-  virtual void Seal();
+  virtual void seal();
   char *name();
   As *father();;
   xbt_dict_t children(); // Sub AS
@@ -53,8 +53,8 @@ public:
 
 protected:
   char *name_ = nullptr;
-  xbt_dict_t children_ = xbt_dict_new_homogeneous(NULL); // sub-ASes
-  xbt_dynar_t vertices_ = xbt_dynar_new(sizeof(char*),NULL); // our content, as known to our graph routing algorithm (maps vertexId -> vertex)
+  xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr); // sub-ASes
+  xbt_dynar_t vertices_ = xbt_dynar_new(sizeof(char*),nullptr); // our content, as known to our graph routing algorithm (maps vertexId -> vertex)
 
   std::map<std::pair<std::string, std::string>, std::vector<surf::Link*>*> bypassRoutes_; // srcName x dstName -> route