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

Functor to convert from a given domain to domset1D domain. More...

Public Member Functions

TargetDomain operator() (TargetDomain const &dom)
 Source domain is the same as the target domain - no conversion needed.
 
template<typename TT >
TargetDomain operator() (indexed_domain< TT > const &dom)
 Convert from an indexed_domain. More...
 
template<typename Dist >
TargetDomain operator() (domainset1D< Dist > const &dom)
 Convert from a domainset1D domain. More...
 
template<typename SourceDomain >
TargetDomain operator() (SourceDomain const &dom)
 

Public Types

using TargetDomain = domset1D< T >
 

Detailed Description

template<typename T>
struct stapl::metadata::detail::construct_domain< domset1D< T > >

Functor to convert from a given domain to domset1D domain.

Used in projected_container to construct the view metadata from the container metadata directly.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
template<typename TT >
TargetDomain stapl::metadata::detail::construct_domain< domset1D< T > >::operator() ( indexed_domain< TT > const &  dom)

Convert from an indexed_domain.

Creates a domset1D domain with just one interval equal to the indexed_domain.

◆ operator()() [2/2]

template<typename T >
template<typename Dist >
TargetDomain stapl::metadata::detail::construct_domain< domset1D< T > >::operator() ( domainset1D< Dist > const &  dom)

Convert from a domainset1D domain.

Uses the default conversion method for two general domains if the domainset1D domain is distributed, otherwise extracts the domset1D domain wrapped by the domainset1D.


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