34#ifndef __TEMPORAL_BOXOPS_H__
35#define __TEMPORAL_BOXOPS_H__
41#include "temporal/meos_catalog.h"
50#define TEMPORAL_MAX_HEADER_SIZE \
51 DOUBLE_PAD(Max(Max(sizeof(TInstant), sizeof(TSequence)), \
52 sizeof(TSequenceSet))) + DOUBLE_PAD(sizeof(bboxunion))
71 bool lower_inc,
bool upper_inc,
interpType interp,
void *bbox);
80 bool (*func)(
const Span *,
const Span *),
bool invert);
85 bool (*func)(
const Span *,
const Span *),
bool invert);
87 bool (*func)(
const TBox *,
const TBox *),
bool invert);
89 bool (*func)(
const TBox *,
const TBox *));
void tinstant_set_bbox(const TInstant *inst, void *bbox)
Return in the last argument the bounding box of a temporal instant.
Definition: temporal_boxops.c:212
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:55
bool boxop_tnumber_numspan(const Temporal *temp, const Span *span, bool(*func)(const Span *, const Span *), bool invert)
Generic bounding box function for a temporal number and a span.
Definition: temporal_boxops.c:1759
bool boxop_temporal_tstzspan(const Temporal *temp, const Span *s, bool(*func)(const Span *, const Span *), bool invert)
Generic bounding box function for a temporal value and a timestamptz span.
Definition: temporal_boxops.c:1727
bool temporal_bbox_eq(const void *box1, const void *box2, meosType temptype)
Return true if two bounding boxes are equal.
Definition: temporal_boxops.c:113
bool boxop_tnumber_tbox(const Temporal *temp, const TBox *box, bool(*func)(const TBox *, const TBox *), bool invert)
Generic bounding box function for a temporal number and a temporal box.
Definition: temporal_boxops.c:1773
void tsequenceset_compute_bbox(TSequenceSet *ss)
(Re)compute the bounding box of a temporal sequence set
Definition: temporal_boxops.c:571
int bbox_max_dims(meosType bboxtype)
Return the maximum number of dimensions of a bounding box type.
Definition: temporal_boxops.c:96
void tsequence_compute_bbox(TSequence *seq)
Recompute the bounding box of a temporal sequence.
Definition: temporal_boxops.c:553
void tinstarr_set_bbox(const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, void *bbox)
Set a bounding box from an array of temporal instant values.
Definition: temporal_boxops.c:390
int temporal_bbox_cmp(const void *box1, const void *box2, meosType temptype)
Return -1, 0, or 1 depending on whether the first bounding box is less than, equal,...
Definition: temporal_boxops.c:142
bool bbox_type(meosType bboxtype)
Return true if the type is a bounding box type.
Definition: temporal_boxops.c:70
size_t bbox_get_size(meosType bboxtype)
Return the size of a bounding box type.
Definition: temporal_boxops.c:81
size_t temporal_bbox_size(meosType tempype)
Return the size of a bounding box of a temporal type.
Definition: temporal_boxops.c:166
bool boxop_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2, bool(*func)(const TBox *, const TBox *))
Generic bounding box function for two temporal numbers.
Definition: temporal_boxops.c:1786
void tseqarr_compute_bbox(const TSequence **seqs, int count, void *bbox)
Return in the last argument a bounding box constructed from an array of temporal sequences.
Definition: temporal_boxops.c:528
bool boxop_temporal_temporal(const Temporal *temp1, const Temporal *temp2, bool(*func)(const Span *, const Span *))
Generic bounding box function for two temporal values.
Definition: temporal_boxops.c:1741
interpType
Enumeration that defines the interpolation types used in MEOS.
Definition: meos.h:161
External API of the Mobility Engine Open Source (MEOS) library.
Structure to represent spans (a.k.a.
Definition: meos.h:94
Structure to represent temporal boxes.
Definition: meos.h:124
Structure to represent temporal values of instant subtype.
Definition: meos.h:185
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:224
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173