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

Computes the mapping of an n-dimensional component id to a linear location id in a balanced manner. More...

Public Member Functions

 balance_ndim_to_linear_map (CID &&num_cids, CID &&loc_layout)
 
 balance_ndim_to_linear_map (CID &&num_cids, CID &&cid_offset, CID &&loc_layout)
 
location_type operator() (CID const &cid) const
 
void update (std::vector< std::tuple< std::pair< ContainerGID, ContainerGID >, 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. More...
 

Public Types

using gid_type = CID
 
using index_type = location_type
 

Detailed Description

template<typename CID, typename ContainerGID = CID>
struct stapl::balance_ndim_to_linear_map< CID, ContainerGID >

Computes the mapping of an n-dimensional component id to a linear location id in a balanced manner.

Member Function Documentation

◆ update()

template<typename CID , typename ContainerGID = CID>
void stapl::balance_ndim_to_linear_map< CID, ContainerGID >::update ( std::vector< std::tuple< std::pair< ContainerGID, ContainerGID >, 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.

Warning
Currently mapping functions used in view-based specifications other than arbitrary do not support updates.

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