STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::basic_manager Class Reference

Implementation of common manager with balanced partition and block mapper. Implemented directly in terms of general manager, but reduces symbol length, compilation effort. Used in static_array implementation. More...

Public Member Functions

 basic_manager (partition_t const &p, mapper_t const &m)
 
std::pair< value_type, loc_qualoperator() (gid_type const &x) const
 Look up the home location (manager location) of a GID. More...
 
balanced_partition< indexed_domain< size_t > > const & partition () const
 
balanced_partition< indexed_domain< size_t > > & partition ()
 
void partition (balanced_partition< indexed_domain< size_t > > const &p)
 
mapper< size_t > const & mapper () const
 
mapper< size_t > & mapper (void)
 
void mapper (mapper< size_t > const &m)
 

Public Types

using partition_type = balanced_partition< indexed_domain< size_t > >
 
using mapper_type = mapper< size_t >
 
using gid_type = typename balanced_partition< indexed_domain< size_t > > ::gid_type
 GID of the container.
 
using value_type = typename mapper< size_t > ::value_type
 Location type.
 

Detailed Description

Implementation of common manager with balanced partition and block mapper. Implemented directly in terms of general manager, but reduces symbol length, compilation effort. Used in static_array implementation.

See also
container_directory manager array

Member Function Documentation

◆ operator()()

std::pair<value_type, loc_qual> stapl::directory_impl::manager< balanced_partition< indexed_domain< size_t > > , mapper< size_t > >::operator() ( gid_type const &  x) const
inherited

Look up the home location (manager location) of a GID.

Parameters
xGID to lookup
Returns
The location responsible for x's metadata.
Note
The mapper is defined as mapping pContainer component ids to locations for data distribution. This manager is implementing a perfect mapping of home locations to storage locations as a result, unless element migration has changed the original distribution.

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