STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Friends
stapl::proxy< T, Accessor > Class Template Reference

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
 

Detailed Description

template<typename T, typename Accessor>
class stapl::proxy< T, Accessor >

Defines a basic proxy over the element of type T.

The behavior of the proxy depends of the type of Accessor that is used.

Member Function Documentation

◆ operator T()

template<typename T, typename Accessor>
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.

◆ operator=()

template<typename T, typename Accessor>
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.


The documentation for this class was generated from the following files: