X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4c3d4cccb2f5fb04a2bc157ca321e107711cca53..bd38fea6c9ed9ac4d381cbbfee938776553147fd:/src/mc/RegionSnapshot.hpp diff --git a/src/mc/RegionSnapshot.hpp b/src/mc/RegionSnapshot.hpp index e54516a157..9b741303ad 100644 --- a/src/mc/RegionSnapshot.hpp +++ b/src/mc/RegionSnapshot.hpp @@ -12,8 +12,8 @@ #include -#include "PageStore.hpp" -#include "AddressSpace.hpp" +#include +#include namespace simgrid { namespace mc { @@ -118,21 +118,25 @@ public: void operator()(void* p) const; }; -/** @brief Copy/snapshot of a given memory region +typedef std::unique_ptr unique_data_ptr; + +/** A copy/snapshot of a given memory region * * Different types of region snapshot storage types exist: - *
    - *
  • flat/dense snapshots are a simple copy of the region;
  • - *
  • sparse/per-page snapshots are snaapshots which shared - * identical pages.
  • - *
  • privatized (SMPI global variable privatisation). - *
+ * + * * flat/dense snapshots are a simple copy of the region; + * + * * sparse/per-page snapshots are snaapshots which shared + * identical pages. + * + * * privatized (SMPI global variable privatisation). * * This is handled with a variant based approch: * - * * `storage_type` identified the type of storage; - * * an anonymous enum is used to distinguish the relevant types for - * each type. + * * `storage_type` identified the type of storage; + * + * * an anonymous enum is used to distinguish the relevant types for + * each type. */ class RegionSnapshot { public: @@ -144,7 +148,7 @@ public: static const StorageType ChunkedData = StorageType::Chunked; static const StorageType PrivatizedData = StorageType::Privatized; public: - typedef std::unique_ptr flat_data_ptr; + typedef unique_data_ptr flat_data_ptr; private: RegionType region_type_; StorageType storage_type_;