tiled_extent オブジェクトにインデックスを提供します。 このクラスには、ローカル タイルの原点およびグローバル原点を基準として要素にアクセスするためのプロパティがあります。 タイル スペースの詳細については、「タイルの使用」を参照してください。
構文
template <
int _Dim0,
int _Dim1 = 0,
int _Dim2 = 0
>
class tiled_index : public _Tiled_index_base<3>;
template <
int _Dim0,
int _Dim1
>
class tiled_index<_Dim0, _Dim1, 0> : public _Tiled_index_base<2>;
template <
int _Dim0
>
class tiled_index<_Dim0, 0, 0> : public _Tiled_index_base<1>;
パラメーター
_Dim0
最も重要な次元の長さ。
_Dim1
次に重要な次元の長さ。
_Dim2
最低次元の長さ。
メンバー
パブリック コンストラクター
| 名前 | 説明 |
|---|---|
| tiled_index コンストラクター |
tile_index クラスの新しいインスタンスを初期化します。 |
パブリック メソッド
| 名前 | 説明 |
|---|---|
| get_tile_extent |
extent オブジェクトであり、tiled_index、_Dim0、_Dim1 のテンプレート引数の値を保持するものを返します。 |
パブリック定数
| 名前 | 説明 |
|---|---|
| barrier 定数 | スレッドの現在のタイルのバリアを表す tile_barrier オブジェクトを格納します。 |
| グローバル定数 | grid オブジェクトのグローバル インデックスを表すランク 1、2、または 3 の index オブジェクトを格納します。 |
| ローカル定数 |
index ランク 1、2、または 3 のオブジェクトを格納し、tiled_extent オブジェクトの現在のタイルにおける相対インデックスを表します。 |
| rank 定数 |
tiled_index オブジェクトのランクを格納します。 |
| tile 定数 |
index オブジェクトの現在のタイルの座標を表すランク 1、2、または 3 の tiled_extent オブジェクトを格納します。 |
| tile_dim0 定数 | 最上位の次元の長さを格納します。 |
| tile_dim1 定数 | 次に重要な次元の長さを格納します。 |
| tile_dim2 定数 | 最下位の次元の長さを格納します。 |
| tile_origin 定数 |
index オブジェクトの現在のタイルの原点のグローバル座標を表すランク 1、2、または 3 の tiled_extent オブジェクトを格納します。 |
パブリック データ メンバー
| 名前 | 説明 |
|---|---|
| tile_extent |
extent オブジェクトを取得し、そのオブジェクトは tiled_index テンプレート引数、tiled_index テンプレート引数、_Dim0、_Dim1、_Dim2 の値を持っています。 |
継承階層
_Tiled_index_base
tiled_index
要件
ヘッダー: amp.h
名前空間: Concurrency(同時性)
tiled_index コンストラクター
tiled_index クラスの新しいインスタンスを初期化します。
構文
tiled_index(
const index<rank>& _Global,
const index<rank>& _Local,
const index<rank>& _Tile,
const index<rank>& _Tile_origin,
const tile_barrier& _Barrier ) restrict(amp,cpu);
tiled_index(
const tiled_index& _Other ) restrict(amp,cpu);
パラメーター
_Global
構築された tiled_index のグローバル インデックス。
_Local
構築されたインデックスのローカルtiled_index
_Tile
構築された
_Tile_origin
構築されたtiled_indexのタイル原点のインデックス
_Barrier
構築された tile_barrier オブジェクト。
_Other
構築された tiled_index にコピーされる tile_index オブジェクトです。
オーバーロード
| 名前 | 説明 |
|---|---|
tiled_index(const index<rank>& _Global, const index<rank>& _Local, const index<rank>& _Tile, const index<rank>& _Tile_origin, const tile_barrier& _Barrier restrict(amp,cpu); |
グローバル座標のタイルのインデックスおよびローカル座標のタイルの相対位置から tile_index クラスの新しいインスタンスを初期化します。
_Global パラメーターおよび _Tile_origin パラメーターが計算されます。 |
tiled_index( const tiled_index& _Other) restrict(amp,cpu); |
指定した tile_index オブジェクトをコピーして、tiled_index クラスの新しいインスタンスを初期化します。 |
get_tile_extent
extent オブジェクトを返します。このオブジェクトは tiled_index、_Dim0、_Dim1 のテンプレート引数の値を保持します。
構文
extent<rank> get_tile_extent()restrict(amp,cpu);
戻り値
extent テンプレート引数 tiled_index、_Dim0、_Dim1 の値を保持する _Dim2 オブジェクト。
障壁
スレッドの現在のタイルのバリアを表す tile_barrier オブジェクトを格納します。
構文
const tile_barrier barrier;
グローバル
オブジェクトのグローバル インデックスを表すランク 1、2、または 3 の index オブジェクトを格納します。
構文
const index<rank> global;
ローカル
index オブジェクトは、tiled_extent オブジェクトの現在のタイル内におけるランク 1、2、または 3 の相対インデックスを表します。
構文
const index<rank> local;
順位
tiled_index オブジェクトのランクを格納します。
構文
static const int rank = _Rank;
タイル
tiled_extent オブジェクトの現在のタイルの座標を表すランク 1、2、または 3 の index オブジェクトを格納します。
構文
const index<rank> tile;
tile_dim0
最上位の次元の長さを格納します。
構文
static const int tile_dim0 = _Dim0;
tile_dim1
次に重要な次元の長さを格納します。
構文
static const int tile_dim1 = _Dim1;
tile_dim2
最下位の次元の長さを格納します。
構文
static const int tile_dim2 = _Dim2;
タイルの起点
tiled_extent オブジェクト内の現在のタイルの原点のグローバル座標を表すランク 1、2、または 3 の index オブジェクトを格納します。
構文
const index<rank> tile_origin
タイル範囲
extent オブジェクトを取得し、そのオブジェクトは tiled_index テンプレート引数、tiled_index テンプレート引数、_Dim0、_Dim1、_Dim2 の値を持っています。
構文
__declspec(property(get= get_tile_extent)) extent<rank> tile_extent;