STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
Concurrency::_Tiled_index_base< _Rank > Class Template Reference

A _Tiled_index_base is the base class of all three kinds of tiled_index to share the common code. More...

#include <amp.h>

Public Member Functions

 _CPP_AMP_VERIFY_RANK (_Rank, tiled_index)
 
 _Tiled_index_base (const index< rank > &_Global, const index< rank > &_Local, const index< rank > &_Tile, const index< rank > &_Tile_origin, const tile_barrier &_Barrier) __GPU
 A Constructor that initializes data members using the given values. More...
 
 _Tiled_index_base (const _Tiled_index_base &_Other) __GPU
 Copy Constructor. More...
 
 operator const index< rank > () const __GPU
 Implicit conversion operator that converts a tiled_index into an index. The implicit conversion converts to the .global index member. More...
 

Public Attributes

const index< rankglobal
 An index that represents the global index within an extent. More...
 
const index< ranklocal
 An index that represents the relative index within the current tile of a tiled_extent. More...
 
const index< ranktile
 An index that represents the coordinates of the current tile of a tiled_extent. More...
 
const index< ranktile_origin
 An index that represents the global coordinates of the origin of the current tile within a tiled_extent. More...
 
const tile_barrier barrier
 An object which represents a barrier within the current tile of threads. More...
 

Static Public Attributes

static const int rank = _Rank
 

Private Member Functions

_Tiled_index_baseoperator= (const _Tiled_index_base &) __GPU
 

Detailed Description

template<int _Rank>
class Concurrency::_Tiled_index_base< _Rank >

A _Tiled_index_base is the base class of all three kinds of tiled_index to share the common code.

Constructor & Destructor Documentation

template<int _Rank>
Concurrency::_Tiled_index_base< _Rank >::_Tiled_index_base ( const index< rank > &  _Global,
const index< rank > &  _Local,
const index< rank > &  _Tile,
const index< rank > &  _Tile_origin,
const tile_barrier _Barrier 
)
inline

A Constructor that initializes data members using the given values.

Parameters
_GlobalThe global index to be copied from
_LocalThe local index to be copied from
_TileThe tile index to be copied from
_Tile_originThe tile origin to be copied from
_BarrierThe barrier to be copied from
1058  : global(_Global), local(_Local), tile(_Tile), tile_origin(_Tile_origin), barrier(_Barrier)
1059  {}
const index< rank > global
An index that represents the global index within an extent.
Definition: amp.h:1013
const index< rank > tile
An index that represents the coordinates of the current tile of a tiled_extent.
Definition: amp.h:1023
const tile_barrier barrier
An object which represents a barrier within the current tile of threads.
Definition: amp.h:1033
const index< rank > tile_origin
An index that represents the global coordinates of the origin of the current tile within a tiled_exte...
Definition: amp.h:1028
const index< rank > local
An index that represents the relative index within the current tile of a tiled_extent.
Definition: amp.h:1018
template<int _Rank>
Concurrency::_Tiled_index_base< _Rank >::_Tiled_index_base ( const _Tiled_index_base< _Rank > &  _Other)
inline

Copy Constructor.

Parameters
_OtherThe tile_index instance to be copied from .
1068  : global(_Other.global),
1069  local(_Other.local),
1070  tile(_Other.tile),
1071  tile_origin(_Other.tile_origin),
1072  barrier(_Other.barrier)
1073  {}
const index< rank > global
An index that represents the global index within an extent.
Definition: amp.h:1013
const index< rank > tile
An index that represents the coordinates of the current tile of a tiled_extent.
Definition: amp.h:1023
const tile_barrier barrier
An object which represents a barrier within the current tile of threads.
Definition: amp.h:1033
const index< rank > tile_origin
An index that represents the global coordinates of the origin of the current tile within a tiled_exte...
Definition: amp.h:1028
const index< rank > local
An index that represents the relative index within the current tile of a tiled_extent.
Definition: amp.h:1018

Member Function Documentation

template<int _Rank>
Concurrency::_Tiled_index_base< _Rank >::_CPP_AMP_VERIFY_RANK ( _Rank  ,
tiled_index   
)
template<int _Rank>
Concurrency::_Tiled_index_base< _Rank >::operator const index< rank > ( ) const
inline

Implicit conversion operator that converts a tiled_index into an index. The implicit conversion converts to the .global index member.

1080  {
1081  return global;
1082  }
const index< rank > global
An index that represents the global index within an extent.
Definition: amp.h:1013
template<int _Rank>
_Tiled_index_base& Concurrency::_Tiled_index_base< _Rank >::operator= ( const _Tiled_index_base< _Rank > &  )
private

Member Data Documentation

template<int _Rank>
const tile_barrier Concurrency::_Tiled_index_base< _Rank >::barrier

An object which represents a barrier within the current tile of threads.

template<int _Rank>
const index<rank> Concurrency::_Tiled_index_base< _Rank >::global

An index that represents the global index within an extent.

template<int _Rank>
const index<rank> Concurrency::_Tiled_index_base< _Rank >::local

An index that represents the relative index within the current tile of a tiled_extent.

template<int _Rank>
const int Concurrency::_Tiled_index_base< _Rank >::rank = _Rank
static
template<int _Rank>
const index<rank> Concurrency::_Tiled_index_base< _Rank >::tile

An index that represents the coordinates of the current tile of a tiled_extent.

template<int _Rank>
const index<rank> Concurrency::_Tiled_index_base< _Rank >::tile_origin

An index that represents the global coordinates of the origin of the current tile within a tiled_extent.


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