DASH
0.3.0
|
Classes | |
struct | rebind |
Convert GlobSharedRef<T, GlobalPointer<T>> to GlobSharedRef<U, GlobalPointer<U>>. More... | |
Public Types | |
typedef GlobalPointerType | global_pointer |
typedef GlobalPointerType | const_global_pointer |
typedef T * | local_pointer |
typedef const T * | const_local_pointer |
Public Member Functions | |
GlobSharedRef () | |
Default constructor, creates an GlobSharedRef object referencing an element in global memory. More... | |
GlobSharedRef (dart_gptr_t gptr, local_pointer lptr) | |
Constructor, creates an GlobSharedRef object referencing an element in global memory. More... | |
template<class GlobalType > | |
GlobSharedRef (GlobalType &gptr, local_pointer lptr=nullptr) | |
Constructor, creates an GlobSharedRef object referencing an element in global memory. More... | |
GlobSharedRef (local_pointer lptr) | |
Constructor, creates an GlobSharedRef object referencing an element in global memory. More... | |
GlobSharedRef (dart_gptr_t dart_gptr) | |
Constructor, creates an GlobSharedRef object referencing an element in global memory. More... | |
GlobSharedRef (const self_t &other) | |
Copy constructor. More... | |
self_t & | operator= (const self_t &other) |
Assignment operator. More... | |
bool | operator== (const self_t &other) const noexcept |
bool | operator!= (const self_t &other) const noexcept |
operator T () const | |
T | get () const |
void | put (T &val) const |
self_t & | operator= (const T val) |
GlobSharedRef< T, GlobalPointerType > & | operator+= (const T &ref) |
self_t & | operator-= (const T &ref) |
self_t & | operator++ () |
self_t | operator++ (int) |
self_t & | operator-- () |
self_t | operator-- (int) |
self_t & | operator*= (const T &ref) |
self_t & | operator/= (const T &ref) |
self_t & | operator^= (const T &ref) |
dart_gptr_t | dart_gptr () const |
local_pointer | local () const |
bool | is_local () const |
Checks whether the globally referenced element is in the calling unit's local memory. More... | |
Friends | |
template<typename U , typename P > | |
std::ostream & | operator<< (std::ostream &os, const GlobSharedRef< U, P > &gref) |
Definition at line 18 of file GlobSharedRef.h.
|
inline |
Default constructor, creates an GlobSharedRef object referencing an element in global memory.
Definition at line 58 of file GlobSharedRef.h.
Referenced by dash::GlobSharedRef< T, GlobalPointerType >::GlobSharedRef().
|
inlineexplicit |
Constructor, creates an GlobSharedRef object referencing an element in global memory.
gptr | Pointer to referenced object in global memory |
Definition at line 67 of file GlobSharedRef.h.
|
inline |
Constructor, creates an GlobSharedRef object referencing an element in global memory.
gptr | Pointer to referenced object in global memory |
Definition at line 83 of file GlobSharedRef.h.
|
inline |
Constructor, creates an GlobSharedRef object referencing an element in global memory.
lptr | Pointer to referenced object in global memory |
Definition at line 98 of file GlobSharedRef.h.
|
inlineexplicit |
Constructor, creates an GlobSharedRef object referencing an element in global memory.
Definition at line 111 of file GlobSharedRef.h.
|
inline |
Copy constructor.
other | GlobSharedRef instance to copy. |
Definition at line 121 of file GlobSharedRef.h.
References dash::GlobSharedRef< T, GlobalPointerType >::GlobSharedRef().
|
inline |
Checks whether the globally referenced element is in the calling unit's local memory.
Definition at line 327 of file GlobSharedRef.h.
References dart_gptr_t::addr_or_offs, dart_team_myid(), dart_gptr_t::flags, dart_gptr_t::segid, dart_gptr_t::teamid, and dart_gptr_t::unitid.
|
inline |
Assignment operator.
Definition at line 141 of file GlobSharedRef.h.
References dash::Team::All(), dart_fetch_and_op(), dart_flush(), DART_GPTR_ISNULL, dash::local(), and dash::swap().