Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill typedef lmm_system_t
[simgrid.git] / src / kernel / lmm / maxmin.hpp
index c64d4d6..65a2cd1 100644 (file)
@@ -6,14 +6,15 @@
 #ifndef SURF_MAXMIN_HPP
 #define SURF_MAXMIN_HPP
 
+#include "simgrid/kernel/resource/Action.hpp"
 #include "src/internal_config.h"
-#include "src/kernel/resource/Action.hpp"
 #include "src/surf/surf_interface.hpp"
 #include "surf/surf.hpp"
 #include "xbt/asserts.h"
 #include "xbt/mallocator.h"
 #include "xbt/misc.h"
 #include "xbt/utility.hpp"
+
 #include <boost/intrusive/list.hpp>
 #include <cmath>
 #include <limits>
@@ -138,10 +139,10 @@ namespace lmm {
  * @brief Solve the lmm system
  * @param sys The lmm system to solve
  */
-XBT_PUBLIC void lmm_solve(lmm_system_t sys);
+XBT_PUBLIC void lmm_solve(lmm::System* sys);
 
-XBT_PUBLIC void lagrange_solve(lmm_system_t sys);
-XBT_PUBLIC void bottleneck_solve(lmm_system_t sys);
+XBT_PUBLIC void lagrange_solve(lmm::System* sys);
+XBT_PUBLIC void bottleneck_solve(lmm::System* sys);
 
 /** Default functions associated to the chosen protocol. When using the lagrangian approach. */
 
@@ -600,9 +601,9 @@ public:
                                                                    &Constraint::saturated_constraint_set_hook>>
       saturated_constraint_set;
 
-  simgrid::kernel::resource::ActionLmmListPtr keep_track;
+  simgrid::kernel::resource::ActionLmmListPtr modified_set_ = nullptr;
 
-  void (*solve_fun)(lmm_system_t self);
+  void (*solve_fun)(lmm::System* self);
 
 private:
   bool selective_update_active; /* flag to update partially the system only selecting changed portions */