A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create_checker without Session argument
[simgrid.git]
/
src
/
mc
/
AddressSpace.hpp
diff --git
a/src/mc/AddressSpace.hpp
b/src/mc/AddressSpace.hpp
index 8701fa25972439a3aa195f7aa0f46a0a6e28a81e..005adaa44a971f56456668458809ab495331283c 100644
(file)
--- a/
src/mc/AddressSpace.hpp
+++ b/
src/mc/AddressSpace.hpp
@@
-21,8
+21,9
@@
namespace mc {
class ReadOptions {
std::uint32_t value_ = 0;
constexpr explicit ReadOptions(std::uint32_t value) : value_(value) {}
class ReadOptions {
std::uint32_t value_ = 0;
constexpr explicit ReadOptions(std::uint32_t value) : value_(value) {}
+
public:
public:
- constexpr ReadOptions()
{}
+ constexpr ReadOptions()
= default;
explicit constexpr operator bool() const { return value_ != 0; }
constexpr bool operator!() const { return value_ == 0; }
explicit constexpr operator bool() const { return value_ != 0; }
constexpr bool operator!() const { return value_ == 0; }
@@
-56,7
+57,7
@@
public:
}
ReadOptions& operator^=(ReadOptions const& that)
{
}
ReadOptions& operator^=(ReadOptions const& that)
{
- value_
&
= that.value_;
+ value_
^
= that.value_;
return *this;
}
return *this;
}
@@
-83,17
+84,17
@@
public:
*/
class AddressSpace {
private:
*/
class AddressSpace {
private:
- Remote
Client* process
_;
+ Remote
Simulation* remote_simulation
_;
public:
public:
- explicit AddressSpace(Remote
Client* process) : process_(process
) {}
+ explicit AddressSpace(Remote
Simulation* remote_simulation) : remote_simulation_(remote_simulation
) {}
virtual ~AddressSpace() = default;
/** The process of this address space
*
virtual ~AddressSpace() = default;
/** The process of this address space
*
- * This is where we can get debug information
s
, memory layout, etc.
+ * This is where we can get debug information, memory layout, etc.
*/
*/
- simgrid::mc::Remote
Client* process() const { return process
_; }
+ simgrid::mc::Remote
Simulation* get_remote_simulation() const { return remote_simulation
_; }
/** Read data from the address space
*
/** Read data from the address space
*
@@
-132,7
+133,6
@@
public:
this->read_bytes(&res[0], len, address);
return res;
}
this->read_bytes(&res[0], len, address);
return res;
}
-
};
}
};
}