This topic has not yet been rated - Rate this topic

tiled_grid Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a grid that has 1, 2, or 3 dimensions and that also subdivides the grid space into 1-, 2-, or 3-dimensional tiles. It has three specialized forms: tiled_grid<D0>, tiled_grid<D0,D1>, and tiled_grid<D0,D1,D2>, where the parameters specify the length of the tile along each dimension. D0 is the most-significant dimension, and D2 is the least-significant dimension.

template <
   int _D0,
   int _D1 = 0,
   int _D2 = 0
>
class tiled_grid : public _Grid_base<3, tiled_grid<_D0, _D1, _D2>>;
template <
   int _D0,
   int _D1
>
class tiled_grid<_D0, _D1, 0> : public _Grid_base<2, tiled_grid<_D0, _D1>>;
template <
   int _D0
>
class tiled_grid<_D0, 0, 0> : public _Grid_base<1, tiled_grid<_D0>>;
_D0

The length in the dimension.

_D1

The length in the dimension.

_D2

The length in the dimension.

Public Constructors

Name

Description

tiled_grid::tiled_grid Constructor

Initializes a new instance of the tiled_grid class.

Public Methods

Name

Description

tiled_grid::contains Method

Indicates whether the specified index value is contained in the tiled_grid object.

tiled_grid::size Method

Returns the total linear size, in units of elements, of the extent of the tiled_grid object.

tiled_grid::get_tile_extent Method

Returns an extent object that captures the values of the tiled_grid template arguments _D0, _D1, and _D2 (or Z, Y, and X).

Public Constants

Name

Description

tiled_grid::rank Constant

Stores the template argument of the tiled_grid object.

Public Data Members

Name

Description

tiled_grid::extent Data Member

Gets the extent object that defines the shape of the tiled_grid object.

tiled_grid::tile_extent Data Member

Gets an extent object that captures the values of the tiled_grid template arguments _D0, _D1, and _D2 (or Z, Y, and X).

_Grid_base

tiled_grid

Header: amp.h

Namespace: Concurrency

Did you find this helpful?
(1500 characters remaining)