A container's mapper is responsible for mapping base container IDs (essentially subdomains) to locations.
More...
|
| mapper (domain_type const &dom) |
| Instantiate the mapper with the domain of base container IDs and optionally, the set of locations that we are mapping to. More...
|
|
cid_view_type | components (size_t loc) const |
| Create a view that contains all of the base container IDs that a particular location is responsible for. This is the inverse of mapper::map. More...
|
|
location_type | map (cid_type const &cid) const |
| Map a base container ID to a location. More...
|
|
size_t | get_num_locations (void) const |
|
cid_type | next (cid_type const &cid) const |
|
bool | valid (cid_type const &cid) const |
|
template<typename CID>
struct stapl::mapper< CID >
A container's mapper is responsible for mapping base container IDs (essentially subdomains) to locations.
This particular mapper maps subdomains to locations in a blocked and balanced manner. That is, given the subdomains (p0, p1, ..., pk) and l locations, each location will be mapped contiguous blocks of k/l subdomains.
- Template Parameters
-
CID | The base container ID type |