STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::detail::default_key_mapper< Key > Class Template Reference

Define default key to location mapping strategy used in the directory class used by containers and the PARAGRAPH. More...

Public Member Functions

 default_key_mapper (std::size_t domain_size)
 
void set_num_locations (size_t nlocs)
 
constexpr bool is_perfect_mapper (void) const
 
std::pair< location_type, loc_qualoperator() (Key const &key) const
 Map key value to a location in this space. More...
 

Detailed Description

template<typename Key>
class stapl::detail::default_key_mapper< Key >

Define default key to location mapping strategy used in the directory class used by containers and the PARAGRAPH.

Template Parameters
KeyKey type which is mapped to a location

Member Function Documentation

◆ operator()()

template<typename Key>
std::pair<location_type, loc_qual> stapl::detail::default_key_mapper< Key >::operator() ( Key const &  key) const

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: