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

Class for computing the metadata of static_array container that uses container_manager_static that inherits from the base-container, and thus, is the base-container itself. This type of container manager has only one component per location. More...

Public Member Functions

template<typename Container >
return_type operator() (Container *container)
 Return the metadata of specified container. More...
 
return_type operator() (Distribution *dist)
 Return the metadata of specified distribution. More...
 

Public Types

typedef metadata::container_wrapper< Distribution > md_cont_type
 
typedef md_cont_type::index_type index_type
 
typedef std::pair< bool, md_cont_type * > return_type
 

Detailed Description

template<typename Distribution>
struct stapl::static_array_metadata< Distribution >

Class for computing the metadata of static_array container that uses container_manager_static that inherits from the base-container, and thus, is the base-container itself. This type of container manager has only one component per location.

Template Parameters
DistributionType of the Distribution.
Note
this is different from the static_container_extractor primarily due to the metadata used. This class uses the metadata_container_wrapper whereas the static_metadata uses the metadata::flat_container.

Member Function Documentation

◆ operator()() [1/2]

template<typename Distribution >
template<typename Container >
return_type stapl::static_array_metadata< Distribution >::operator() ( Container *  container)

Return the metadata of specified container.

See also
metadata_entry.
Parameters
contA pointer to the container.

Calls the operator on the distribution of the provided container.

Returns
a pair indicating if the metadata container is static and balance distributed and a pointer to the metadata container.

◆ operator()() [2/2]

template<typename Distribution >
return_type stapl::static_array_metadata< Distribution >::operator() ( Distribution *  dist)

Return the metadata of specified distribution.

See also
metadata_entry.
Parameters
distA pointer to the distribution.
Returns
a pair indicating if the metadata container is static and balance distributed and a pointer to the metadata container.

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