Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some #include fixes
[simgrid.git] / src / surf / surf_interface.hpp
index 7b13c6c..51e5d8b 100644 (file)
@@ -6,13 +6,12 @@
 #ifndef SURF_MODEL_H_
 #define SURF_MODEL_H_
 
+#include <cstddef>
+
 #include <xbt.h>
-#include <string>
-#include <vector>
 #include <memory>
 #include <utility>
 
-#include <boost/function.hpp>
 #include <boost/intrusive/list.hpp>
 
 #include <xbt/signal.hpp>
@@ -140,9 +139,9 @@ public:
   /** @brief Mark that the action is now finished */
   void finish();
 
-  /** @brief Get the [state](\ref e_surf_action_state_t) of the current Action */
+  /** @brief Get the [state](\ref simgrid::surf::Action::State) of the current Action */
   Action::State getState(); /**< get the state*/
-  /** @brief Set the [state](\ref e_surf_action_state_t) of the current Action */
+  /** @brief Set the [state](\ref simgrid::surf::Action::State) of the current Action */
   virtual void setState(Action::State state);
 
   /** @brief Get the bound of the current Action */
@@ -255,7 +254,7 @@ public:
   void gapRemove();
 
 protected:
-  lmm_variable_t variable_;
+  lmm_variable_t variable_ = nullptr;
   double lastValue_ = 0;
   double lastUpdate_ = 0;
   int suspended_ = 0;
@@ -406,7 +405,7 @@ public:
   bool operator==(const Resource &other) const;
 
   /**
-   * @brief Apply an event of external load event to that storage
+   * @brief Apply an event of external load event to that resource
    *
    * @param event What happened
    * @param value [TODO]