#include "tensorstore/chunk_layout.h"
class tensorstore::ChunkLayout::Grid;

Owned mutable representation of shape, aspect_ratio and elements constraints for a write/read/codec grid.

Methods

Gridoperator=(const Gridother);
Gridoperator=(Grid&other) = default;

Assigns from another grid.

DimensionIndex rank() const;
absl::Status Set(RankConstraint value);

Specifies the rank constraint.

Shape shape() const;
explicit operator Shape() const;
absl::Status Set(Shape value);

Specifies the shape constraint.

AspectRatio aspect_ratio() const;
explicit operator AspectRatio() const;
absl::Status Set(AspectRatio value);

Specifies the aspect ratio constraint.

Elements elements() const;
explicit operator Elements() const;
absl::Status Set(Elements value);

Specifies the target number of elements.

absl::Status Set(const GridViewvalue);

Merges in constraints from another Grid or GridView.

Types

using Shape = ChunkShapeBase;

Represents the shape constraint.

using AspectRatio = ChunkAspectRatioBase;

Represents the aspect ratio constraint.

using Elements = ChunkElementsBase;

Represents the target number of elements constraint.

Friend functions

friend bool operator==(const Gridaconst Gridb);
friend bool operator!=(const Gridaconst Gridb);

Compares two chunk grid constraints for equality.