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
[mc] Remove unused declarations
[simgrid.git]
/
src
/
mc
/
RemotePtr.hpp
diff --git
a/src/mc/RemotePtr.hpp
b/src/mc/RemotePtr.hpp
index
c9a931c
..
23d0372
100644
(file)
--- a/
src/mc/RemotePtr.hpp
+++ b/
src/mc/RemotePtr.hpp
@@
-34,6
+34,11
@@
public:
RemotePtr(T* address) : address_((std::uintptr_t)address) {}
std::uint64_t address() const { return address_; }
RemotePtr(T* address) : address_((std::uintptr_t)address) {}
std::uint64_t address() const { return address_; }
+ /** Turn into a local pointer
+ *
+ (if the remote process is not, in fact, remote) */
+ T* local() { return (T*) address_; }
+
operator bool() const
{
return address_;
operator bool() const
{
return address_;