STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::skeletons::skeleton_loc_mapper< Domain, Mapper > Class Template Reference

Define key to location mapping strategy used in the directory class based on the location of view element that the task is consuming from. If the task is not consuming from from a view element we use the default_key_mapper. More...

Public Member Functions

 skeleton_loc_mapper (domain_type const &dom, Mapper const &mapper=Mapper())
 
std::pair< location_type, loc_qualoperator_helper (std::true_type, std::size_t tid) const
 
std::pair< location_type, loc_qualoperator_helper (std::false_type, std::size_t tid) const
 
std::pair< location_type, loc_qualoperator() (std::size_t tid) const
 
void set_num_locations (size_t nlocs)
 
constexpr bool is_perfect_mapper (void) const
 
std::pair< location_type, loc_qualoperator() (std::size_t const &key) const
 Map key value to a location in this space. More...
 

Detailed Description

template<typename Domain, typename Mapper = stapl::use_default>
class stapl::skeletons::skeleton_loc_mapper< Domain, Mapper >

Define key to location mapping strategy used in the directory class based on the location of view element that the task is consuming from. If the task is not consuming from from a view element we use the default_key_mapper.

Template Parameters
Domainthe domain type of the view that is used for location mapping.
Mapperlocation mapper type

Member Function Documentation

◆ operator()()

std::pair<location_type, loc_qual> stapl::detail::default_key_mapper< std::size_t >::operator() ( std::size_t const &  key) const
inherited

Map key value to a location in this space.

Parameters
keyidentifier to map
Returns
location identifier

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