Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake_case routing::NetPoint
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jun 2018 19:14:17 +0000 (21:14 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jun 2018 19:23:24 +0000 (21:23 +0200)
include/simgrid/kernel/routing/NetPoint.hpp
src/instr/instr_platform.cpp
src/kernel/routing/NetPoint.cpp
src/surf/network_ns3.cpp

index 77d184e7d0ba09625434ac44b78bdd78e2083ae6..046cd45382421af48d366f02013b42246ae502ae 100644 (file)
@@ -40,7 +40,7 @@ public:
   bool is_host() { return component_type_ == Type::Host; }
   bool is_router() { return component_type_ == Type::Router; }
 
   bool is_host() { return component_type_ == Type::Host; }
   bool is_router() { return component_type_ == Type::Router; }
 
-  static simgrid::xbt::signal<void(NetPoint*)> onCreation;
+  static simgrid::xbt::signal<void(NetPoint*)> on_creation;
 
   bool operator<(const NetPoint& rhs) const { return name_ < rhs.name_; }
 
 
   bool operator<(const NetPoint& rhs) const { return name_ < rhs.name_; }
 
index ec0639d4a679cff9a8b33b4d769913f1d51874d1..a9ba36935f40b1e44ed3e9a39a4197e2dc98b91d 100644 (file)
@@ -352,7 +352,7 @@ void instr_define_callbacks()
     simgrid::s4u::Link::on_creation.connect(instr_link_on_creation);
     simgrid::s4u::Link::on_bandwidth_change.connect(instr_link_on_bandwidth_change);
     simgrid::s4u::NetZone::on_seal.connect([](simgrid::s4u::NetZone& /*netzone*/) { currentContainer.pop_back(); });
     simgrid::s4u::Link::on_creation.connect(instr_link_on_creation);
     simgrid::s4u::Link::on_bandwidth_change.connect(instr_link_on_bandwidth_change);
     simgrid::s4u::NetZone::on_seal.connect([](simgrid::s4u::NetZone& /*netzone*/) { currentContainer.pop_back(); });
-    simgrid::kernel::routing::NetPoint::onCreation.connect(instr_netpoint_on_creation);
+    simgrid::kernel::routing::NetPoint::on_creation.connect(instr_netpoint_on_creation);
   }
   simgrid::s4u::NetZone::on_creation.connect(instr_netzone_on_creation);
 
   }
   simgrid::s4u::NetZone::on_creation.connect(instr_netzone_on_creation);
 
index 6326cf27a9309c08e327a552f233ccac32717d40..6a23274eaf78d5bb05556efff37bc97f518aa23a 100644 (file)
@@ -13,7 +13,7 @@ namespace simgrid {
 namespace kernel {
 namespace routing {
 
 namespace kernel {
 namespace routing {
 
-simgrid::xbt::signal<void(NetPoint*)> NetPoint::onCreation;
+simgrid::xbt::signal<void(NetPoint*)> NetPoint::on_creation;
 
 NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl* netzone_p)
     : name_(name), component_type_(componentType), englobing_zone_(netzone_p)
 
 NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl* netzone_p)
     : name_(name), component_type_(componentType), englobing_zone_(netzone_p)
@@ -23,7 +23,7 @@ NetPoint::NetPoint(std::string name, NetPoint::Type componentType, NetZoneImpl*
   else
     id_ = static_cast<decltype(id_)>(-1);
   simgrid::s4u::Engine::get_instance()->netpoint_register(this);
   else
     id_ = static_cast<decltype(id_)>(-1);
   simgrid::s4u::Engine::get_instance()->netpoint_register(this);
-  simgrid::kernel::routing::NetPoint::onCreation(this);
+  simgrid::kernel::routing::NetPoint::on_creation(this);
 }
 }
 }
 }
 }
 }
index 15a1618caa0e99fff5abb9360085b33cd0ee3246..a35400cc9f664c0c8668af5e77e7876ac125736d 100644 (file)
@@ -159,7 +159,7 @@ NetworkNS3Model::NetworkNS3Model() : NetworkModel(Model::UpdateAlgo::FULL)
 
   ns3_initialize(ns3_tcp_model.get().c_str());
 
 
   ns3_initialize(ns3_tcp_model.get().c_str());
 
-  simgrid::kernel::routing::NetPoint::onCreation.connect([](simgrid::kernel::routing::NetPoint* pt) {
+  simgrid::kernel::routing::NetPoint::on_creation.connect([](simgrid::kernel::routing::NetPoint* pt) {
     pt->extension_set<NetPointNs3>(new NetPointNs3());
     XBT_VERB("SimGrid's %s is known as node %d within NS3", pt->get_cname(), pt->extension<NetPointNs3>()->node_num);
   });
     pt->extension_set<NetPointNs3>(new NetPointNs3());
     XBT_VERB("SimGrid's %s is known as node %d within NS3", pt->get_cname(), pt->extension<NetPointNs3>()->node_num);
   });