#include "tensorstore/chunk_layout.h"
template <Usage U>
class tensorstore::ChunkLayout::GridViewFor : public GridView;

Strongly-typed view that provides access to parameters specific to a particular Usage.

Types

using Shape = ChunkShapeFor<U>;

Representation of the shape constraint.

using AspectRatio = ChunkAspectRatioFor<U>;

Representation of the aspect ratio constraint.

using Elements = ChunkElementsFor<U>;

Representation of the target number of elements constraint.

Constructors

explicit GridViewFor(GridView other);

Constructs from an existing grid.

Methods

Shape shape() const;

Returns the shape constraint.

AspectRatio aspect_ratio() const;

Returns the aspect ratio constraint.

Elements elements() const;

Returns the target number of elements.