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 > |
Functor to convert from a given domain to domset1D domain.
Used in projected_container to construct the view metadata from the container metadata directly.
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
.
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
.