From: Martin Quinson Date: Wed, 23 Mar 2016 09:28:02 +0000 (+0100) Subject: rename a method to stick to our naming conventions X-Git-Tag: v3_13~327^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bae801393879cdf0856f2f87fcc0a8052afa1d35 rename a method to stick to our naming conventions --- diff --git a/include/simgrid/s4u/As.hpp b/include/simgrid/s4u/As.hpp index b79afa45ff..370edfc224 100644 --- a/include/simgrid/s4u/As.hpp +++ b/include/simgrid/s4u/As.hpp @@ -38,7 +38,7 @@ protected: 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 diff --git a/src/s4u/s4u_as.cpp b/src/s4u/s4u_as.cpp index 60459e6d73..b0f760f50e 100644 --- a/src/s4u/s4u_as.cpp +++ b/src/s4u/s4u_as.cpp @@ -19,7 +19,7 @@ namespace simgrid { : name_(xbt_strdup(name)) { } - void As::Seal() + void As::seal() { sealed_ = true; } diff --git a/src/surf/AsDijkstra.cpp b/src/surf/AsDijkstra.cpp index 3d542a510b..f18a2c517b 100644 --- a/src/surf/AsDijkstra.cpp +++ b/src/surf/AsDijkstra.cpp @@ -38,7 +38,7 @@ static void graph_edge_data_free(void *e) // FIXME: useless code duplication namespace simgrid { namespace surf { -void AsDijkstra::Seal() +void AsDijkstra::seal() { xbt_node_t node = NULL; unsigned int cursor2, cursor; diff --git a/src/surf/AsDijkstra.hpp b/src/surf/AsDijkstra.hpp index 346e20aa0c..081bffd9a1 100644 --- a/src/surf/AsDijkstra.hpp +++ b/src/surf/AsDijkstra.hpp @@ -33,7 +33,7 @@ namespace surf { class XBT_PRIVATE AsDijkstra : public AsRoutedGraph { public: AsDijkstra(const char*name, bool cached); - void Seal() override; + void seal() override; ~AsDijkstra(); xbt_node_t routeGraphNewNode(int id, int graph_id); diff --git a/src/surf/AsFloyd.cpp b/src/surf/AsFloyd.cpp index 891675af67..960b039f34 100644 --- a/src/surf/AsFloyd.cpp +++ b/src/surf/AsFloyd.cpp @@ -149,7 +149,7 @@ void AsFloyd::addRoute(sg_platf_route_cbarg_t route) } } -void AsFloyd::Seal(){ +void AsFloyd::seal(){ /* set the size of table routing */ size_t table_size = xbt_dynar_length(vertices_); diff --git a/src/surf/AsFloyd.hpp b/src/surf/AsFloyd.hpp index 39ba4371ec..4c04f39289 100644 --- a/src/surf/AsFloyd.hpp +++ b/src/surf/AsFloyd.hpp @@ -19,7 +19,7 @@ public: void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override; void addRoute(sg_platf_route_cbarg_t route) override; - void Seal() override; + void seal() override; private: /* vars to compute the Floyd algorithm. */ diff --git a/src/surf/AsFull.cpp b/src/surf/AsFull.cpp index 9f757613d5..37d3ff7709 100644 --- a/src/surf/AsFull.cpp +++ b/src/surf/AsFull.cpp @@ -17,7 +17,7 @@ namespace surf { { } -void AsFull::Seal() { +void AsFull::seal() { int i; sg_platf_route_cbarg_t e_route; diff --git a/src/surf/AsFull.hpp b/src/surf/AsFull.hpp index df5fee55ba..f91b021d91 100644 --- a/src/surf/AsFull.hpp +++ b/src/surf/AsFull.hpp @@ -16,7 +16,7 @@ class XBT_PRIVATE AsFull: public AsRoutedGraph { public: AsFull(const char*name); - void Seal() override; + void seal() override; ~AsFull(); void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override; diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 51315f589a..e3898d17b7 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -948,7 +948,7 @@ void sg_platf_new_AS_begin(sg_platf_AS_cbarg_t AS) void sg_platf_new_AS_end() { xbt_assert(current_routing, "Cannot seal the current AS: none under construction"); - current_routing->Seal(); + current_routing->seal(); current_routing = static_cast(current_routing->father()); if (TRACE_is_enabled())