-
#include "tensorstore/chunk_layout.h"
- class tensorstore::ChunkLayout::Grid;
Owned mutable representation of
shape
,aspect_ratio
andelements
constraints for a write/read/codec grid.Methods¶
- Grid& operator=(const Grid& other);
- Grid& operator=(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.
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 Grid& a, const Grid& b);
- friend bool operator!=(const Grid& a, const Grid& b);
Compares two chunk grid constraints for equality.