X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9735863c1ccb1ae8b55853262d6e1c3ee3a8698f..1ee4b856922e6a71a805e54ef5ae8c537155fa93:/include/simgrid/s4u/As.hpp diff --git a/include/simgrid/s4u/As.hpp b/include/simgrid/s4u/As.hpp index b79afa45ff..445424f164 100644 --- a/include/simgrid/s4u/As.hpp +++ b/include/simgrid/s4u/As.hpp @@ -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::vector*> bypassRoutes_; // srcName x dstName -> route