X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c54bb11ab9d68e5a581528dfc4c425ff68a8c776..c3a022946c0849d8b4ffdb81fae65db33554cf7f:/src/surf/maxmin_private.h diff --git a/src/surf/maxmin_private.h b/src/surf/maxmin_private.h index 6216bc9bc6..ddb9e2adf2 100644 --- a/src/surf/maxmin_private.h +++ b/src/surf/maxmin_private.h @@ -10,6 +10,7 @@ #include "surf/maxmin.h" #include "xbt/swag.h" +#include "xbt/mallocator.h" typedef struct lmm_element { /* hookup to constraint */ @@ -50,6 +51,7 @@ typedef struct lmm_variable { double bound; double value; void *id; + int index; } s_lmm_variable_t; typedef struct lmm_system { @@ -61,6 +63,8 @@ typedef struct lmm_system { s_xbt_swag_t saturated_variable_set; /* a list of lmm_variable_t */ s_xbt_swag_t saturated_constraint_set; /* a list of lmm_constraint_t_t */ + + xbt_mallocator_t variable_mallocator; } s_lmm_system_t; #define extract_variable(sys) xbt_swag_remove(xbt_swag_getFirst(&(sys->variable_set)),&(sys->variable_set)) @@ -77,4 +81,6 @@ typedef struct lmm_system { static void lmm_var_free(lmm_system_t sys, lmm_variable_t var); static void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst); +void lmm_print(lmm_system_t sys); + #endif /* _SURF_MAXMIN_PRIVATE_H */