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. | |
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.