 |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Go to the documentation of this file.
23 #ifndef D_SINTERVAL_HH
24 #define D_SINTERVAL_HH
354 std::
string axis_name;
361 bool low_fixed{
false};
363 bool high_fixed{
false};
bool operator!=(const r_Sinterval &) const
non equal operator - negation of equal operator
bool operator==(const r_Sinterval &) const
Two intervals are equal if they have the same lower and upper bound.
r_Bytes get_storage_size() const
calculate the size of the storage space occupied
void set_axis_name(const std::string &axis_name_arg)
set an axis name for this interval; an empty string will clear any axis name.
r_Range low() const noexcept
std::ostream & operator<<(std::ostream &s, const r_Sinterval &d)
Output stream operator for objects of type const r_Sinterval.
r_Sinterval create_difference(const r_Sinterval &) const
void set_high(r_Range high)
r_Sinterval()=default
default constructor creates an interval with open bounds
r_Sinterval create_union(const r_Sinterval &) const
bool is_low_unbounded() const noexcept
bool is_low_fixed() const noexcept
OffsetType get_extent() const
get the size of one dimensional interval as range (high() - low() + 1)
r_Sinterval create_intersection(const r_Sinterval &) const
r_Sinterval & closure_with(const r_Sinterval &)
bool is_high_unbounded() const noexcept
r_Range high() const noexcept
r_Sinterval & intersection_of(const r_Sinterval &, const r_Sinterval &)
r_Sinterval & difference_of(const r_Sinterval &, const r_Sinterval &)
size_t OffsetType
Definition: sinterval.hh:217
r_Sinterval translate_by(BoundType offset) const
translate this interval by a given offset; assumes that this interval has fixed bounds
r_Sinterval & closure_of(const r_Sinterval &, const r_Sinterval &)
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition: mddtypes.hh:43
void print_status(std::ostream &s) const
writes the state of the object to the specified stream
char * get_string_representation() const
Returns a string representation of this sinterval as a pointer that should eventually be deallocated ...
std::string to_string() const
Returns a string representation of this sinterval as a string object.
r_Sinterval create_closure(const r_Sinterval &) const
bool intersects_with(const r_Sinterval &) const
determines if the self interval intersects with the delivered one
std::int64_t r_Range
for axis indexing, e.g.
Definition: mddtypes.hh:53
void set_slice() noexcept
void set_interval(r_Range low, r_Range high)
r_Sinterval & union_with(const r_Sinterval &)
r_Sinterval & union_of(const r_Sinterval &, const r_Sinterval &)
void set_low(r_Range low)
const std::string & get_axis_name() const
bool inside_of(const r_Sinterval &o) const
r_Range BoundType
Definition: sinterval.hh:216
OffsetType get_offset_to(BoundType o) const noexcept
get distance to lower bound of this interval from o; this interval is assumed to be fixed in the lowe...
r_Sinterval & intersection_with(const r_Sinterval &)
r_Sinterval & difference_with(const r_Sinterval &)
bool is_high_fixed() const noexcept
bool is_fixed() const noexcept
bool has_axis_name() const
The class represents an interval with lower and upper bound.
Definition: sinterval.hh:213
bool is_slice() const noexcept