Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove usage of boost::iterator_range
[simgrid.git] / src / mc / Process.hpp
index 5f2ba9a..724d068 100644 (file)
 #include <vector>
 #include <memory>
 
-#include <boost/range/iterator_range.hpp>
-
 #include <sys/types.h>
 
 #include <simgrid_config.h>
 
 #include <xbt/base.h>
 #include <xbt/dynar.h>
-#include <xbt/dynar.hpp>
 #include <xbt/mmalloc.h>
 
 #ifdef HAVE_MC
@@ -217,7 +214,7 @@ public:
 
   void ignore_local_variable(const char *var_name, const char *frame_name);
   int socket() { return socket_; }
-  simgrid::xbt::DynarRange<s_mc_smx_process_info> simix_processes();
+  std::vector<simgrid::mc::SimixProcessInformation>& simix_processes();
 
 private:
   void init_memory_map_info();
@@ -302,12 +299,6 @@ public: // Libunwind-data
   void* unw_underlying_context;
 };
 
-// TODO, remove this
-#define MC_PROCESS_FOREACH(xs, cursor, p) \
-  if (! xs.empty()) \
-  for (auto __it = (cursor = 0, p = &*xs.begin(), xs.begin()); \
-    __it != xs.end(); ++__it, ++cursor, p = &*__it)
-
 /** Open a FD to a remote process memory (`/dev/$pid/mem`)
  */
 XBT_PRIVATE int open_vm(pid_t pid, int flags);