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

Function object to generate neighbors of a location id in a 2D space. More...

Static Public Member Functions

static result_type apply (size_type proc_id, size_type num_procs)
 Returns the neighbors of proc_id. More...
 

Public Types

typedef std::size_t size_type
 
typedef std::set< T > result_type
 

Detailed Description

template<typename T>
class stapl::detail::processor_map_2D< T >

Function object to generate neighbors of a location id in a 2D space.

Member Function Documentation

◆ apply()

template<typename T >
static result_type stapl::detail::processor_map_2D< T >::apply ( size_type  proc_id,
size_type  num_procs 
)
static

Returns the neighbors of proc_id.

Since no duplicate ids are allowed, the number of returned neighbors may be less than num_procs.


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