Defines a basic proxy over the element of type T
.
More...
Public Member Functions | |
proxy (Accessor dsc) | |
proxy (proxy const &)=default | |
proxy (proxy &&)=default | |
size_t | get_num_copies (void) const |
operator T (void) const | |
Returns the value referenced for the proxy. More... | |
proxy const & | operator= (proxy const &rhs) |
proxy const & | operator= (T const &rhs) |
Assigns the given value (rhs ) to the element referenced for the proxy. More... | |
Friends | |
class | proxy_core_access |
Defines a basic proxy over the element of type T
.
The behavior of the proxy depends of the type of Accessor
that is used.
stapl::proxy< T, Accessor >::operator T | ( | void | ) | const |
Returns the value referenced for the proxy.
Depending on the type of accessor, reading a value could generate a synchronous communication.
proxy const& stapl::proxy< T, Accessor >::operator= | ( | T const & | rhs | ) |
Assigns the given value (rhs
) to the element referenced for the proxy.
Depending on the type of accessor, assigning the value could generate an asynchronous communication.