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

A bool that has a representative on all locations and can perform an allreduce to AND / OR across all locations. More...

Public Member Functions

 distributed_value (T v)
 
value (void) const
 
template<typename ReduceOp >
stapl::future< T > reduce (ReduceOp &&red)
 

Private Types

using size_type = rmi_handle::size_type
 

Private Member Functions

runtime::location_md const & get_location_md (void) const noexcept
 Returns the location metadata of the location this object registered in.
 
runtime::location_mdget_location_md (void) noexcept
 Returns the location metadata of the location this object registered in. noexcept More...
 
Distributed Object Management
rmi_handle::const_reference const & get_rmi_handle (void) const noexcept
 Returns the associated rmi_handle.
 
rmi_handle::reference const & get_rmi_handle (void) noexcept
 Returns the associated rmi_handle.
 
size_type get_location_id (void) const noexcept
 Returns the location id of the local sub-object.
 
size_type get_num_locations (void) const noexcept
 Returns the number of locations of the gang of this p_object.
 
void advance_epoch (void)
 Advances the epoch of the object. More...
 
void unlock (void)
 Used by lock_guard functionality in method of derived classes to request atomicity with respect to incoming RMIs. More...
 
void lock (void)
 Used by lock_guard functionality in method of derived classes to request atomicity with respect to incoming RMIs. More...
 
bool try_lock (void)
 Attempt to maintain atomicity with respect to incoming RMIs. More...
 

Detailed Description

template<typename T>
class stapl::distributed_value< T >

A bool that has a representative on all locations and can perform an allreduce to AND / OR across all locations.


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