Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Documentation
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 14 Oct 2015 08:06:13 +0000 (10:06 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 15 Oct 2015 09:18:32 +0000 (11:18 +0200)
src/mc/RegionSnapshot.hpp
src/mc/Type.hpp
src/mc/Variable.hpp

index e54516a..9b74130 100644 (file)
@@ -12,8 +12,8 @@
 
 #include <xbt/base.h>
 
-#include "PageStore.hpp"
-#include "AddressSpace.hpp"
+#include <mc/PageStore.hpp>
+#include <mc/AddressSpace.hpp>
 
 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<char[], data_deleter> unique_data_ptr;
+
+/** A copy/snapshot of a given memory region
  *
  *  Different types of region snapshot storage types exist:
- *  <ul>
- *    <li>flat/dense snapshots are a simple copy of the region;</li>
- *    <li>sparse/per-page snapshots are snaapshots which shared
- *    identical pages.</li>
- *    <li>privatized (SMPI global variable privatisation).
- *  </ul>
+ *
+ *  * 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<char[], data_deleter> flat_data_ptr;
+  typedef unique_data_ptr flat_data_ptr;
 private:
   RegionType region_type_;
   StorageType storage_type_;
index 2c2d817..accea56 100644 (file)
 namespace simgrid {
 namespace mc {
 
-/** Represent a member of  a structure (or inheritance) */
+/** A member of a structure, union
+ *
+ *  Inheritance is seen as a special member as well.
+ */
 class Member {
 public:
   Member() : inheritance(false), byte_size(0), type_id(0) {}
@@ -52,10 +55,7 @@ public:
   }
 };
 
-/** Represents a type in the program
- *
- *  It is currently used to represent members of structs and unions as well.
- */
+/** A type in the model-checked program */
 class Type {
 public:
   Type();
index 9b57dbc..804a7a7 100644 (file)
@@ -17,6 +17,7 @@
 namespace simgrid {
 namespace mc {
 
+/** A variable (global or local) in the model-checked program */
 class Variable {
 public:
   Variable();