Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / surf / network_interface.hpp
index 1c86cfd..914cca5 100644 (file)
@@ -17,6 +17,7 @@
 #include "src/surf/PropertyHolder.hpp"
 
 #include "simgrid/link.h"
+#include "simgrid/s4u/link.hpp"
 
 /***********
  * Classes *
@@ -125,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
@@ -139,6 +135,8 @@ namespace simgrid {
       bool currentlyDestroying_ = false;
 
     public:
+      /** @brief Public interface */
+      s4u::Link piface_;
       /** @brief Callback signal fired when a new Link is created */
       static simgrid::xbt::signal<void(surf::LinkImpl*)> onCreation;