MobilityDB
1.0
|
Bounding box operators for temporal types. More...
#include <postgres.h>
#include <catalog/pg_type.h>
#include <utils/rangetypes.h>
#include "temporal.h"
#include "tbox.h"
Go to the source code of this file.
Functions | |
bool | temporal_bbox_eq (const void *box1, const void *box2, Oid basetypid) |
Returns true if the bounding boxes are equal. More... | |
int | temporal_bbox_cmp (const void *box1, const void *box2, Oid basetypid) |
Returns -1, 0, or 1 depending on whether the first bounding box is less than, equal, or greater than the second one. More... | |
void | temporal_bbox_expand (void *box1, const void *box2, Oid basetypid) |
void | temporal_bbox_shift_tscale (void *box, const Interval *start, const Interval *duration, Oid basetypid) |
Shift and/or scale the time span of the bounding box with the two intervals. More... | |
void | tinstant_make_bbox (void *bbox, const TInstant *inst) |
Set the bounding box from a temporal instant value. More... | |
void | tinstantset_make_bbox (void *bbox, const TInstant **inst, int count) |
Set the bounding box from the array of temporal instant values (dispatch function) More... | |
void | tsequence_make_bbox (void *bbox, const TInstant **inst, int count, bool lower_inc, bool upper_inc) |
Set the bounding box from the array of temporal instant values (dispatch function) More... | |
void | tsequenceset_make_bbox (void *bbox, const TSequence **seqs, int count) |
Set the bounding box from the array of temporal sequence values (dispatch function) More... | |
Datum | tnumber_at_tbox (PG_FUNCTION_ARGS) |
Restricts the temporal value to the temporal box. More... | |
Datum | tnumber_minus_tbox (PG_FUNCTION_ARGS) |
Restricts the temporal value to the complement of the temporal box. More... | |
Temporal * | tnumber_at_tbox_internal (const Temporal *temp, const TBOX *box) |
Restrict the temporal number to the temporal box (internal function) More... | |
Temporal * | tnumber_minus_tbox_internal (const Temporal *temp, const TBOX *box) |
Restrict the temporal number to the complement of the temporal box (internal function). More... | |
Datum | contains_bbox_period_temporal (PG_FUNCTION_ARGS) |
Returns true if the period contains the bounding period of the temporal value. More... | |
Datum | contains_bbox_temporal_period (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the temporal value contains the period. More... | |
Datum | contains_bbox_temporal_temporal (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the first temporal value contains the bounding period of the second one. More... | |
Datum | contained_bbox_period_temporal (PG_FUNCTION_ARGS) |
Returns true if the period is contained the bounding period of the temporal value. More... | |
Datum | contained_bbox_temporal_period (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the temporal value is contained in the period. More... | |
Datum | contained_bbox_temporal_temporal (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the first temporal value is contained in the bounding period of the second one. More... | |
Datum | overlaps_bbox_period_temporal (PG_FUNCTION_ARGS) |
Returns true if the period and the bounding period of the temporal value overlap. More... | |
Datum | overlaps_bbox_temporal_period (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the temporal value and the period overlap. More... | |
Datum | overlaps_bbox_temporal_temporal (PG_FUNCTION_ARGS) |
Returns true if the bounding periods of the temporal values overlap. More... | |
Datum | same_bbox_period_temporal (PG_FUNCTION_ARGS) |
Returns true if the period and the bounding period of the temporal value are equal. More... | |
Datum | same_bbox_temporal_period (PG_FUNCTION_ARGS) |
Returns true if the bounding period of the temporal value and the period are equal. More... | |
Datum | same_bbox_temporal_temporal (PG_FUNCTION_ARGS) |
Returns true if the bounding periods of the temporal values are equal. More... | |
Datum | overlaps_bbox_range_tnumber (PG_FUNCTION_ARGS) |
Returns true if the range and the bounding box of the temporal number overlap. More... | |
Datum | overlaps_bbox_tbox_tnumber (PG_FUNCTION_ARGS) |
Returns true if the temporal box and the bounding box of the temporal number overlap. More... | |
Datum | overlaps_bbox_tnumber_range (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number and the the range overlap. More... | |
Datum | overlaps_bbox_tnumber_tbox (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number and the temporal box overlap. More... | |
Datum | overlaps_bbox_tnumber_tnumber (PG_FUNCTION_ARGS) |
Returns true if the bounding boxes of the temporal numbers overlap. More... | |
Datum | contains_bbox_range_tnumber (PG_FUNCTION_ARGS) |
Returns true if the range contains the bounding box of the temporal number. More... | |
Datum | contains_bbox_tbox_tnumber (PG_FUNCTION_ARGS) |
Returns true if the temporal box contains the bounding box of the temporal number. More... | |
Datum | contains_bbox_tnumber_range (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number contains the range. More... | |
Datum | contains_bbox_tnumber_tbox (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number contains the temporal box. More... | |
Datum | contains_bbox_tnumber_tnumber (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the first temporal number contains the one of the second temporal number. More... | |
Datum | contained_bbox_range_tnumber (PG_FUNCTION_ARGS) |
Returns true if the range is contained in the bounding box of the temporal number. More... | |
Datum | contained_bbox_tbox_tnumber (PG_FUNCTION_ARGS) |
Returns true if the temporal box is contained in the bounding box of the temporal number. More... | |
Datum | contained_bbox_tnumber_range (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number is contained in the range. More... | |
Datum | contained_bbox_tnumber_tbox (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number is contained in the temporal box. More... | |
Datum | contained_bbox_tnumber_tnumber (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the first temporal number is contained in the one of the second temporal number. More... | |
Datum | same_bbox_range_tnumber (PG_FUNCTION_ARGS) |
Returns true if the range and the bounding box of the temporal number are equal on the common dimensions. More... | |
Datum | same_bbox_tbox_tnumber (PG_FUNCTION_ARGS) |
Returns true if the temporal box and the bounding box of the temporal number are equal in the common dimensions. More... | |
Datum | same_bbox_tnumber_range (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number and the the range are equal on the common dimensions. More... | |
Datum | same_bbox_tnumber_tbox (PG_FUNCTION_ARGS) |
Returns true if the bounding box of the temporal number and the temporal box are equal in the common dimensions. More... | |
Datum | same_bbox_tnumber_tnumber (PG_FUNCTION_ARGS) |
Returns true if the bounding boxes of the temporal numbers are equal in the common dimensions. More... | |
Datum | boxop_period_temporal (FunctionCallInfo fcinfo, bool(*func)(const Period *, const Period *)) |
Generic bounding box operator for a period and a temporal value. More... | |
Datum | boxop_temporal_period (FunctionCallInfo fcinfo, bool(*func)(const Period *, const Period *)) |
Generic bounding box operator for a temporal value and a period. More... | |
Datum | boxop_temporal_temporal (FunctionCallInfo fcinfo, bool(*func)(const Period *, const Period *)) |
Generic bounding box operator for two temporal values. More... | |
Datum | boxop_range_tnumber (FunctionCallInfo fcinfo, bool(*func)(const TBOX *, const TBOX *)) |
Generic bounding box operator for a range and a temporal number. More... | |
Datum | boxop_tnumber_range (FunctionCallInfo fcinfo, bool(*func)(const TBOX *, const TBOX *)) |
Generic bounding box operator for a temporal number and a range. More... | |
Datum | boxop_tbox_tnumber (FunctionCallInfo fcinfo, bool(*func)(const TBOX *, const TBOX *)) |
Generic bounding box operator for a temporal box and a temporal number. More... | |
Datum | boxop_tnumber_tbox (FunctionCallInfo fcinfo, bool(*func)(const TBOX *, const TBOX *)) |
Generic bounding box operator for a temporal number and a temporal box. More... | |
Datum | boxop_tnumber_tnumber (FunctionCallInfo fcinfo, bool(*func)(const TBOX *, const TBOX *)) |
Generic bounding box operator for two temporal numbers. More... | |
Bounding box operators for temporal types.