Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Headers cleanup
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 Jul 2016 11:38:22 +0000 (13:38 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 Jul 2016 11:46:46 +0000 (13:46 +0200)
include/simgrid/s4u/Activity.hpp
include/simgrid/s4u/As.hpp
include/simgrid/s4u/actor.hpp
include/simgrid/s4u/comm.hpp
include/simgrid/s4u/conditionVariable.hpp
include/simgrid/s4u/engine.hpp
include/simgrid/s4u/file.hpp
include/simgrid/s4u/host.hpp
include/simgrid/s4u/mailbox.hpp
include/simgrid/s4u/mutex.hpp
include/simgrid/s4u/storage.hpp

index 222c932..fae7fb8 100644 (file)
@@ -7,18 +7,17 @@
 #ifndef SIMGRID_S4U_ACTIVITY_HPP
 #define SIMGRID_S4U_ACTIVITY_HPP
 
-#include <stdlib.h>
+#include <cstdlib>
+
 #include <xbt/base.h>
 #include <xbt/misc.h>
 
 #include <simgrid/s4u/forward.hpp>
-#include "simgrid/forward.h"
+#include <simgrid/forward.h>
 
-SG_BEGIN_DECL();
 typedef enum {
   inited, started, finished
 } e_s4u_activity_state_t;
-SG_END_DECL();
 
 namespace simgrid {
 namespace s4u {
index 3106d01..32d50b5 100644 (file)
@@ -6,12 +6,15 @@
 #ifndef SIMGRID_S4U_AS_HPP
 #define SIMGRID_S4U_AS_HPP
 
-#include "xbt/base.h"
-#include "xbt/graph.h"
-
-#include "simgrid/s4u/forward.hpp"
-#include <vector>
 #include <map>
+#include <string>
+#include <utility>
+#include <vector>
+
+#include <xbt/base.h>
+#include <xbt/graph.h>
+
+#include <simgrid/s4u/forward.hpp>
 
 #include "src/surf/xml/platf_private.hpp" // FIXME: kill sg_platf_route_cbarg_t to remove that UGLY include
 
index f7c43b8..2a3d38b 100644 (file)
 #include <functional>
 #include <memory>
 #include <stdexcept>
+#include <string>
 #include <type_traits>
+#include <utility>
+#include <vector>
 
 #include <xbt/base.h>
 #include <xbt/functional.hpp>
index 2977798..47c7332 100644 (file)
@@ -8,6 +8,7 @@
 #define SIMGRID_S4U_COMM_HPP
 
 #include <xbt/base.h>
+
 #include <simgrid/s4u/Activity.hpp>
 #include <simgrid/s4u/forward.hpp>
 #include <simgrid/s4u/mailbox.hpp>
index 4d59c28..0530406 100644 (file)
@@ -7,9 +7,14 @@
 #define SIMGRID_S4U_COND_VARIABLE_HPP
 
 #include <condition_variable>
+#include <future>
 #include <mutex>
 #include <utility> // std::swap
 
+#include <boost/intrusive_ptr.hpp>
+
+#include <xbt/base.h>
+
 #include <simgrid/simix.h>
 #include <simgrid/s4u/mutex.hpp>
 
index e7b184c..dc98207 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef SIMGRID_S4U_ENGINE_HPP
 #define SIMGRID_S4U_ENGINE_HPP
 
+#include <string>
+#include <utility>
+#include <vector>
+
 #include <xbt/base.h>
 #include <xbt/functional.hpp>
 
index 4acf4c3..1c3adc8 100644 (file)
@@ -7,6 +7,7 @@
 #define SIMGRID_S4U_FILE_HPP
 
 #include <xbt/base.h>
+
 #include <simgrid/simix.h>
 
 namespace simgrid {
index 7dd89ff..8d7d2dd 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef SIMGRID_S4U_HOST_HPP
 #define SIMGRID_S4U_HOST_HPP
 
+#include <string>
+
 #include <boost/unordered_map.hpp>
 
 #include <xbt/base.h>
index cbaf3fa..3009725 100644 (file)
@@ -6,12 +6,13 @@
 #ifndef SIMGRID_S4U_MAILBOX_HPP
 #define SIMGRID_S4U_MAILBOX_HPP
 
-#include <xbt/base.h>
-#include <simgrid/s4u/forward.hpp>
+#include <string>
+
+#include <boost/unordered_map.hpp>
 
-#ifdef __cplusplus
+#include <xbt/base.h>
 
-# include <boost/unordered_map.hpp>
+#include <simgrid/s4u/forward.hpp>
 #include <simgrid/s4u/actor.hpp>
 
 namespace simgrid {
@@ -60,8 +61,6 @@ private:
 };
 }} // namespace simgrid::s4u
 
-#endif /* C++ */
-
 XBT_PUBLIC(sg_mbox_t) sg_mbox_by_name(const char*name);
 XBT_PUBLIC(int) sg_mbox_is_empty(sg_mbox_t mbox);
 XBT_PUBLIC(void)sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process);
index bf4e00d..e6a1ed5 100644 (file)
@@ -9,6 +9,8 @@
 #include <mutex>
 #include <utility>
 
+#include <boost/intrusive_ptr.hpp>
+
 #include <xbt/base.h>
 #include "simgrid/simix.h"
 
index 4504bb8..7e9add9 100644 (file)
@@ -7,9 +7,13 @@
 #ifndef INCLUDE_SIMGRID_S4U_STORAGE_HPP_
 #define INCLUDE_SIMGRID_S4U_STORAGE_HPP_
 
+#include <string>
+
 #include <boost/unordered_map.hpp>
-#include "xbt/base.h"
-#include "simgrid/simix.h"
+
+#include <xbt/base.h>
+
+#include <simgrid/simix.h>
 #include <simgrid/s4u/forward.hpp>
 
 namespace simgrid {