]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Link.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless private
[simgrid.git] / include / simgrid / s4u / Link.hpp
index b9ae777b47e0ccb452b26c152b584fc0dff94975..d95a753bc098986790fa2270bc93200c640620f9 100644 (file)
@@ -29,11 +29,17 @@ class XBT_PUBLIC Link : public simgrid::xbt::Extendable<Link> {
   // The private implementation, that never changes
   kernel::resource::LinkImpl* const pimpl_;
 
+  bool currentlyDestroying_ = false;
+
 public:
   enum class SharingPolicy { SPLITDUPLEX = 2, SHARED = 1, FATPIPE = 0 };
 
+  virtual void destroy();
+  kernel::resource::LinkImpl* get_impl() { return pimpl_; }
+
   /** @brief Retrieve a link from its name */
-  static Link* by_name(const char* name);
+  static Link* by_name(std::string name);
+  static Link* by_name_or_null(std::string name);
 
   /** @brief Retrieves the name of that link as a C++ string */
   const std::string& get_name() const;