Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 10 Feb 2017 14:33:02 +0000 (15:33 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 10 Feb 2017 22:57:56 +0000 (23:57 +0100)
include/simgrid/s4u/Actor.hpp
src/s4u/s4u_link.cpp
src/surf/network_interface.hpp

index 55a308b..1eb18d1 100644 (file)
@@ -134,7 +134,7 @@ namespace s4u {
 XBT_PUBLIC_CLASS Actor {
   friend Mailbox;
   friend simgrid::simix::ActorImpl;
-  smx_actor_t pimpl_ = nullptr;
+  simix::ActorImpl* pimpl_ = nullptr;
 
   /** Wrap a (possibly non-copyable) single-use task into a `std::function` */
   template<class F, class... Args>
index 7f9802f..b1ce7b1 100644 (file)
@@ -85,26 +85,26 @@ Link* Link::byName(const char* name)
 }
 const char* Link::name()
 {
-  return pimpl_->getName();
+  return this->pimpl_->getName();
 }
 bool Link::isUsed()
 {
-  return pimpl_->isUsed();
+  return this->pimpl_->isUsed();
 }
 
 double Link::latency()
 {
-  return pimpl_->latency();
+  return this->pimpl_->latency();
 }
 
 double Link::bandwidth()
 {
-  return pimpl_->bandwidth();
+  return this->pimpl_->bandwidth();
 }
 
 int Link::sharingPolicy()
 {
-  return pimpl_->sharingPolicy();
+  return this->pimpl_->sharingPolicy();
 }
 
 void Link::turnOn()
@@ -122,7 +122,7 @@ void Link::turnOff()
 
 void* Link::getData()
 {
-  return pimpl_->getData();
+  return this->pimpl_->getData();
 }
 void Link::setData(void* d)
 {
index f0838b6..914cca5 100644 (file)
@@ -126,13 +126,8 @@ namespace simgrid {
      * @details A Link represents the link between two [hosts](\ref simgrid::surf::HostImpl)
      */
     class LinkImpl : public simgrid::surf::Resource, public simgrid::surf::PropertyHolder {
-    public:
-      /** @brief Constructor of LMM links */
-      LinkImpl(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint);
-
-      /* Link destruction logic */
-      /**************************/
     protected:
+      LinkImpl(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint);
       ~LinkImpl() override;
     public:
       void destroy(); // Must be called instead of the destructor