STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::dist_spec_impl::mapping_wrapper< MappingFunction, GID, CID > Struct Template Reference

Wrapper class used to hold mapping functions in view-based distribution specifications. The distribution_spec_view constructor creates an instance of this class and maintains access to it using a pointer to mapping_base. More...

Public Member Functions

 mapping_wrapper (MappingFunction const &mapfunc)
 
index_type operator() (gid_type gid) const final
 
MappingFunction & mapfunc (void)
 
void update (std::vector< std::tuple< std::pair< GID, GID >, CID, location_type >> const &updates, size_t level)
 Method required of all mapping functions. The method is called by the update_distribution method of containers.
 

Detailed Description

template<typename MappingFunction, typename GID, typename CID>
struct stapl::dist_spec_impl::mapping_wrapper< MappingFunction, GID, CID >

Wrapper class used to hold mapping functions in view-based distribution specifications. The distribution_spec_view constructor creates an instance of this class and maintains access to it using a pointer to mapping_base.

This approach allows mapping functions to be required to provide operator() and update methods without forcing inheritance from a common base class.


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