34#ifndef __TEMPORAL_BOXOPS_H__
35#define __TEMPORAL_BOXOPS_H__
40#include "general/meos_catalog.h"
41#include "general/temporal.h"
42#include "general/span.h"
67 bool lower_inc,
bool upper_inc,
interpType interp,
void *bbox);
75 bool (*func)(
const Span *,
const Span *),
bool invert);
77 bool (*func)(
const Span *,
const Span *),
bool invert);
79 bool (*func)(
const Span *,
const Span *),
bool invert);
81 bool (*func)(
const Span *,
const Span *),
bool invert);
88 bool (*func)(
const TBox *,
const TBox *),
bool invert);
90 bool (*func)(
const TBox *,
const TBox *),
bool invert);
92 bool (*func)(
const TBox *,
const TBox *),
bool invert);
94 bool (*func)(
const TBox *,
const TBox *));
void tinstant_set_bbox(const TInstant *inst, void *bbox)
Set the second argument to the bounding box of a temporal instant.
Definition: temporal_boxops.c:227
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:53
bool boxop_tnumber_numspanset(const Temporal *temp, const SpanSet *ss, bool(*func)(const TBox *, const TBox *), bool invert)
bool temporal_bbox_eq(const void *box1, const void *box2, meosType temptype)
Return true if two bounding boxes are equal.
Definition: temporal_boxops.c:118
bool boxop_tnumber_tbox(const Temporal *temp, const TBox *box, bool(*func)(const TBox *, const TBox *), bool invert)
Datum boxop_temporal_period(const Temporal *temp, const Span *p, bool(*func)(const Span *, const Span *), bool invert)
int bbox_max_dims(meosType bboxtype)
Return the maximum number of dimensions of a bounding box type.
Definition: temporal_boxops.c:101
void tsequence_compute_bbox(const TSequence *seq, void *box)
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:144
void ensure_bbox_type(meosType bboxtype)
Ensure that the type corresponds to a bounding box type.
Definition: temporal_boxops.c:75
Datum boxop_temporal_timestampset(const Temporal *temp, const Set *ts, bool(*func)(const Span *, const Span *), bool invert)
bool bbox_type(meosType bboxtype)
Bounding box operators for temporal types.
Definition: temporal_boxops.c:64
size_t bbox_get_size(meosType bboxtype)
Return the size of a bounding box type.
Definition: temporal_boxops.c:86
bool boxop_tnumber_number(const Temporal *temp, Datum value, meosType basetype, bool(*func)(const TBox *, const TBox *), bool invert)
size_t temporal_bbox_size(meosType tempype)
Return the size of a bounding box of a temporal type.
Definition: temporal_boxops.c:203
Datum boxop_temporal_timestamp(const Temporal *temp, TimestampTz t, bool(*func)(const Span *, const Span *), bool invert)
void temporal_bbox_shift_tscale(void *box, meosType temptype, const Interval *start, const Interval *duration)
Shift and/or scale the time span of the bounding box by the intervals.
Definition: temporal_boxops.c:165
uint32_t temporal_max_header_size(void)
Bounding box operators for temporal types.
Definition: temporal_boxops.c:67
bool boxop_tnumber_tnumber(const Temporal *temp1, const Temporal *temp2, bool(*func)(const TBox *, const TBox *))
void tsequenceset_compute_bbox(const TSequence **seqs, int count, void *bbox)
Set the bounding box from the array of temporal sequence values.
Definition: temporal_boxops.c:432
bool boxop_tnumber_numspan(const Temporal *temp, const Span *span, bool(*func)(const TBox *, const TBox *), bool invert)
void tinstarr_compute_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:287
bool boxop_temporal_periodset(const Temporal *temp, const SpanSet *ps, bool(*func)(const Span *, const Span *), bool invert)
bool boxop_temporal_temporal(const Temporal *temp1, const Temporal *temp2, bool(*func)(const Span *, const Span *))
interpType
Enumeration that defines the interpolation types used in MobilityDB.
Definition: meos.h:124
int64 TimestampTz
Definition: pg_ext_defs.in.h:19
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
Definition: pg_ext_defs.in.h:24
API of the Mobility Engine Open Source (MEOS) library.
Definition: meos.h:56
Structure to represent span sets.
Definition: meos.h:83
Structure to represent spans (a.k.a.
Definition: meos.h:70
Structure to represent temporal boxes.
Definition: meos.h:97
Structure to represent temporal values of instant subtype.
Definition: meos.h:148
Structure to represent temporal values of instant set or sequence subtype.
Definition: meos.h:165
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:136