#include <memory>
#include <vector>
-#include <xbt/base.h>
+#include "xbt/base.h"
#include "src/mc/AddressSpace.hpp"
#include "src/mc/ChunkedData.hpp"
Buffer(void* data, std::size_t size, Type type = Type::Malloc) :
data_(data), size_(size), type_(type) {}
public:
- Buffer() {}
+ Buffer() = default;
void clear() noexcept;
~Buffer() noexcept { clear(); }
* * sparse/per-page snapshots are snaapshots which shared
* identical pages.
*
- * * privatized (SMPI global variable privatisation).
+ * * privatized (SMPI global variable privatization).
*
* This is handled with a variant based approach:
*
size_(size),
permanent_addr_(permanent_addr)
{}
- ~RegionSnapshot() {}
+ ~RegionSnapshot() = default;
RegionSnapshot(RegionSnapshot const&) = default;
RegionSnapshot& operator=(RegionSnapshot const&) = default;
RegionSnapshot(RegionSnapshot&& that)
page_numbers_.clear();
privatized_regions_.clear();
}
-
+
void flat_data(Buffer data)
{
storage_type_ = StorageType::Flat;
}
}
-typedef class simgrid::mc::RegionSnapshot s_mc_mem_region_t, *mc_mem_region_t;
-
+typedef class simgrid::mc::RegionSnapshot s_mc_mem_region_t;
+typedef s_mc_mem_region_t* mc_mem_region_t;
#endif