-
#include "tensorstore/chunk_layout.h"
- class tensorstore::ChunkLayout::GridView;
Base type for constraints applicable to a read/write/codec chunk grid.
This combines constraints on the chunk shape, chunk shape aspect ratio, and chunk shape target number of elements.
Constructors¶
- explicit GridView();
Constructs a view of an unconstrained rank-0 grid.
- explicit GridView(const GridView& other, bool hard_constraint);
- explicit GridView(const Grid& grid, bool hard_constraint = true);
Constructs from an existing grid, optionally converting to hard constraints.
-
explicit GridView(ChunkShapeBase shape,
ChunkAspectRatioBase aspect_ratio,
ChunkElementsBase elements); - explicit GridView(ChunkShapeBase shape);
- explicit GridView(ChunkAspectRatioBase aspect_ratio);
- explicit GridView(ChunkElementsBase elements);
Constructs from individual constraints.
Methods¶
- ChunkShapeBase shape() const;
Returns the shape constraint.
- ChunkAspectRatioBase aspect_ratio() const;
Returns the aspect ratio constraint.
- ChunkElementsBase elements() const;
Returns the target number of elements.