Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Field is effectively a boolean.
[simgrid.git] / src / include / surf / maxmin.hpp
index 7074a9b..e1ec09e 100644 (file)
@@ -205,8 +205,8 @@ public:
   s_lmm_constraint_t() = default;
   s_lmm_constraint_t(void* id_value, double bound_value);
 
-  /** @brief Share a constraint. FIXME: name is misleading */
-  void shared() { sharing_policy = 0; }
+  /** @brief Unshare a constraint. */
+  void unshare() { sharing_policy = 0; }
 
   /**
    * @brief Check if a constraint is shared (shared by default)
@@ -523,11 +523,6 @@ private:
     xbt_swag_remove(var, &variable_set);
     xbt_swag_remove(var, &saturated_variable_set);
   }
-  void remove_constraint(lmm_constraint_t cnst) // FIXME: unused
-  {
-    xbt_swag_remove(cnst, &constraint_set);
-    xbt_swag_remove(cnst, &saturated_constraint_set);
-  }
   void make_constraint_active(lmm_constraint_t cnst) { xbt_swag_insert(cnst, &active_constraint_set); }
   void make_constraint_inactive(lmm_constraint_t cnst)
   {
@@ -555,7 +550,7 @@ private:
   void check_concurrency();
 
 public:
-  int modified;
+  bool modified;
   s_xbt_swag_t variable_set;             /* a list of lmm_variable_t */
   s_xbt_swag_t active_constraint_set;    /* a list of lmm_constraint_t */
   s_xbt_swag_t saturated_variable_set;   /* a list of lmm_variable_t */