![]() |
MobilityDB 1.3
|
Bounding box functions for temporal types. More...
#include "temporal/temporal_boxops.h"
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/span.h"
#include "temporal/temporal.h"
Functions | |
bool | adjacent_numspan_tnumber (const Span *s, const Temporal *temp) |
Return true if a number span and the value span of a temporal number are adjacent. More... | |
bool | adjacent_tbox_tnumber (const TBox *box, const Temporal *temp) |
Return true if a temporal box and the bounding box of a temporal number are adjacent. More... | |
bool | adjacent_temporal_temporal (const Temporal *temp1, const Temporal *temp2) |
Return true if the time spans of two temporal values are adjacent. More... | |
bool | adjacent_temporal_tstzspan (const Temporal *temp, const Span *s) |
Return true if the time span of a temporal value and a timestamptz span are adjacent. More... | |
bool | adjacent_tnumber_numspan (const Temporal *temp, const Span *s) |
Return true if the value span of a temporal number and a number span are adjacent. More... | |
bool | adjacent_tnumber_tbox (const Temporal *temp, const TBox *box) |
Return true if the bounding box of a temporal number and a temporal box are adjacent. More... | |
bool | adjacent_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2) |
Return true if the bounding boxes of two temporal numbers are adjacent. More... | |
bool | adjacent_tstzspan_temporal (const Span *s, const Temporal *temp) |
Return true if a timestamptz span and the time span of a temporal value are adjacent. More... | |
bool | contained_numspan_tnumber (const Span *s, const Temporal *temp) |
Return true if a number span is contained in the value span of a temporal number. More... | |
bool | contained_tbox_tnumber (const TBox *box, const Temporal *temp) |
Return true if a temporal box is contained in the bounding box of a temporal number. More... | |
bool | contained_temporal_temporal (const Temporal *temp1, const Temporal *temp2) |
Return true if the time span of the first temporal value is contained in the one of the second temporal value. More... | |
bool | contained_temporal_tstzspan (const Temporal *temp, const Span *s) |
Return true if the time span of a temporal value is contained in a timestamptz span. More... | |
bool | contained_tnumber_numspan (const Temporal *temp, const Span *s) |
Return true if the value span of a temporal number is contained in a number span. More... | |
bool | contained_tnumber_tbox (const Temporal *temp, const TBox *box) |
Return true if the bounding box of a temporal number is contained in a temporal box. More... | |
bool | contained_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2) |
Return true if the bounding box of the first temporal number is contained in the one of the second temporal number. More... | |
bool | contained_tstzspan_temporal (const Span *s, const Temporal *temp) |
Return true if a timestamptz span is contained the time span of a temporal value. More... | |
bool | contains_numspan_tnumber (const Span *s, const Temporal *temp) |
Return true if a number span contains the value span of a temporal number. More... | |
bool | contains_tbox_tnumber (const TBox *box, const Temporal *temp) |
Return true if a temporal box contains the bounding box of a temporal number. More... | |
bool | contains_temporal_temporal (const Temporal *temp1, const Temporal *temp2) |
Return true if the time span of the first temporal value contains the one of the second one. More... | |
bool | contains_temporal_tstzspan (const Temporal *temp, const Span *s) |
Return true if the time span of a temporal value contains a timestamptz span. More... | |
bool | contains_tnumber_numspan (const Temporal *temp, const Span *s) |
Return true if the value span of a temporal number contains a number span. More... | |
bool | contains_tnumber_tbox (const Temporal *temp, const TBox *box) |
Return true if the bounding box of a temporal number contains a temporal box. More... | |
bool | contains_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2) |
Return true if the bounding box of the first temporal number contains the one of the second temporal number. More... | |
bool | contains_tstzspan_temporal (const Span *s, const Temporal *temp) |
Return true if a timestamptz span contains the time span of a temporal value. More... | |
bool | overlaps_numspan_tnumber (const Span *s, const Temporal *temp) |
Return true if a number span and the value span of a temporal number overlap. More... | |
bool | overlaps_tbox_tnumber (const TBox *box, const Temporal *temp) |
Return true if a temporal box and the bounding box of a temporal number overlap. More... | |
bool | overlaps_temporal_temporal (const Temporal *temp1, const Temporal *temp2) |
Return true if the time spans of two temporal values overlap. More... | |
bool | overlaps_temporal_tstzspan (const Temporal *temp, const Span *s) |
Return true if the time span of a temporal value and a timestamptz span overlap. More... | |
bool | overlaps_tnumber_numspan (const Temporal *temp, const Span *s) |
Return true if the value span of a temporal number and the number span overlap. More... | |
bool | overlaps_tnumber_tbox (const Temporal *temp, const TBox *box) |
Return true if the bounding box of a temporal number and a temporal box overlap. More... | |
bool | overlaps_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2) |
Return true if the bounding boxes of two temporal numbers overlap. More... | |
bool | overlaps_tstzspan_temporal (const Span *s, const Temporal *temp) |
Return true if a timestamptz span and the time span of a temporal value overlap. More... | |
bool | same_numspan_tnumber (const Span *s, const Temporal *temp) |
Return true if a number span and the value span of a temporal number are equal. More... | |
bool | same_tbox_tnumber (const TBox *box, const Temporal *temp) |
Return true if a temporal box and the bounding box of a temporal number are equal in the common dimensions. More... | |
bool | same_temporal_temporal (const Temporal *temp1, const Temporal *temp2) |
Return true if the time spans of two temporal values are equal. More... | |
bool | same_temporal_tstzspan (const Temporal *temp, const Span *s) |
Return true if the time span of a temporal value and a timestamptz span are equal. More... | |
bool | same_tnumber_numspan (const Temporal *temp, const Span *s) |
Return true if the value span of a temporal number and a number span are equal. More... | |
bool | same_tnumber_tbox (const Temporal *temp, const TBox *box) |
Return true if the bounding box of a temporal number and a temporal box are equal in the common dimensions. More... | |
bool | same_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2) |
Return true if the bounding boxes of two temporal numbers are equal. More... | |
bool | same_tstzspan_temporal (const Span *s, const Temporal *temp) |
Return true if a timestamptz span and the time span of a temporal value are equal. More... | |
Bounding box functions for temporal types.
The bounding box of temporal values are
Span
for temporal Boolean and temporal text valuesTBox
for temporal integers and floats, where the x
coordinate is for the value dimension and the t
coordinate is for the time dimension. The following functions are defined: overlaps
, contains
, contained
, same
, and adjacent
.The functions consider as many dimensions as they are shared in both arguments: only the value dimension, only the time dimension, or both the value and the time dimensions.