STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::operations::migratable< Derived > Class Template Reference

Operations class for container distributions that provide element migration. More...

Public Member Functions

void migrate (gid_type const &gid, const location_type destination)
 Migrate a single element with a specific GID to a given location. More...
 

Public Types

typedef distribution_traits< derived_type >::value_type value_type
 
typedef distribution_traits< derived_type >::gid_type gid_type
 

Detailed Description

template<typename Derived>
class stapl::operations::migratable< Derived >

Operations class for container distributions that provide element migration.

This concept requires that the derived distribution has get_element. The derived container manager must support add_element and remove_element. The derived directory must be able to handle update.

The migration protocol is a 5-point protocol as explained in LCPC 2012:

dot_inline_dotgraph_1.png
Template Parameters
DerivedThe most derived distribution class

Member Function Documentation

◆ migrate()

template<typename Derived>
void stapl::operations::migratable< Derived >::migrate ( gid_type const &  gid,
const location_type  destination 
)

Migrate a single element with a specific GID to a given location.

This is the first (intent) message in the migration protocol described in LCPC 2012.

Parameters
gidThe GID to migrate
destinationThe location to migrate to

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