-
#include "tensorstore/index_interval.h" - class tensorstore::IndexIntervalRef;
Represents a mutable reference to an index interval stored as an
inclusive_min,sizepair.Assignment modifies the referenced
inclusive_minandsizevalues.Conversion operators¶
- constexpr operator IndexInterval() const;
Converts to an
IndexInterval.
Methods¶
-
constexpr IndexIntervalRef&
operator=(IndexInterval interval) noexcept; -
constexpr IndexIntervalRef&
operator=(IndexIntervalRef interval) noexcept; Assigns the referenced
inclusive_minandsizevalues.
- constexpr Index inclusive_min() const;
Returns the inclusive lower bound.
- constexpr Index exclusive_min() const;
Returns the exclusive lower bound.
- constexpr Index exclusive_max() const;
Returns the inclusive upper bound of the interval. :returns:
inclusive_min() + size().
- constexpr Index inclusive_max() const;
Returns the inclusive upper bound of the interval.
-
static constexpr IndexIntervalRef
UncheckedSized(Index& inclusive_min, Index& size); Returns an IndexIntervalRef that refers to the specified
inclusive_minandsizevalues.
Friend functions¶
- friend std::ostream& operator<<(std::ostream& os, IndexIntervalRef x);
Prints a string representation.
-
friend constexpr bool
operator==(IndexIntervalRef a, IndexIntervalRef b); Compares two intervals for equality.