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 77d184e..046cd45 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 ec0639d..a9ba369 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 6326cf2..6a23274 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 15a1618..a35400c 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);
   });