STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::view_impl::domain_container< View > Struct Template Reference

Defines a container that exposes the view's domain as a container. More...

Public Member Functions

 domain_container (View const &vw)
 
View & view (void)
 
distribution_type & distribution (void)
 
reference operator[] (index_type index) const
 
value_type get_element (index_type index) const
 
template<typename F >
value_type apply_get (gid_type const &index, F const &f)
 Applies the provided function the the value referenced for the given index returning the resulting value. More...
 
size_t size (void) const
 
domain_type domain (void) const
 

Public Types

typedef View::index_type value_type
 
typedef value_type reference
 
typedef const value_type const_reference
 
typedef View::domain_type domain_type
 
typedef domain_type::index_type index_type
 
typedef index_type gid_type
 
typedef domain_container_distribution< domain_containerdistribution_type
 
typedef metadata::domain_container_extractor< domain_containerloc_dist_metadata
 
typedef View view_type
 

Detailed Description

template<typename View>
struct stapl::view_impl::domain_container< View >

Defines a container that exposes the view's domain as a container.

Template Parameters
Viewtype used to define the domain to use

Member Function Documentation

◆ apply_get()

template<typename View >
template<typename F >
value_type stapl::view_impl::domain_container< View >::apply_get ( gid_type const &  index,
F const &  f 
)

Applies the provided function the the value referenced for the given index returning the resulting value.

Parameters
indexof element to apply the function
ffunction to apply
Returns
result of evaluating the function f on the value referenced for the index

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