]> AND Public Git Repository - simgrid.git/blobdiff - src/include/surf/maxmin.h
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to get Clang happy with our C/C++ bindings
[simgrid.git] / src / include / surf / maxmin.h
index cf32554faaed1f7afbce0b73fb82518f4a794d24..b6a6e969f0e434f6b0eeb3c2620caab68f13b4a4 100644 (file)
@@ -284,6 +284,23 @@ XBT_PUBLIC(lmm_variable_t) lmm_get_var_from_cnst(lmm_system_t sys,
                                      lmm_constraint_t cnst,
                                      lmm_element_t * elem);
 
+/**
+ * @brief Get a var associated to a constraint
+ * @details Get the first variable of the next variable of elem if elem is not NULL
+ *
+ * @param cnst A constraint
+ * @param elem A element of constraint of the constraint or NULL
+ * @param nextelem A element of constraint of the constraint or NULL, the one after elem
+ * @param numelem parameter representing the number of elements to go
+ *
+ * @return A variable associated to a constraint
+ */
+XBT_PUBLIC(lmm_variable_t) lmm_get_var_from_cnst_safe(lmm_system_t /*sys*/,
+                                     lmm_constraint_t cnst,
+                                     lmm_element_t * elem,
+                                     lmm_element_t * nextelem,
+                                     int * numelem);
+
 /**
  * @brief Get the first active constraint of a system
  *