Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace "XBT_PUBLIC_CLASS" with "class XBT_PUBLIC".
[simgrid.git] / src / kernel / resource / Resource.hpp
index e9b66c5..c8eb5c6 100644 (file)
@@ -16,8 +16,7 @@ namespace resource {
  * @brief SURF resource interface class
  * @details This is the ancestor class of every resources in SimGrid, such as links, CPU or storage
  */
-XBT_PUBLIC_CLASS Resource
-{
+class XBT_PUBLIC Resource {
 public:
   /**
    * @brief Constructor of LMM Resources
@@ -72,9 +71,10 @@ public: /* LMM */
   /** @brief Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) */
   kernel::lmm::Constraint* constraint() const;
 
-protected:
+private:
   kernel::lmm::Constraint* const constraint_ = nullptr;
 
+protected:
   struct Metric {
     double peak;              /**< The peak of the metric, ie its max value */
     double scale;             /**< Current availability of the metric according to the traces, in [0,1] */