MobilityDB 1.1
Functions
temporal_boxops.h File Reference
#include <postgres.h>
#include "general/meos_catalog.h"
#include "general/temporal.h"
#include "general/span.h"
#include "general/tbox.h"
#include "point/stbox.h"
Include dependency graph for temporal_boxops.h:

Go to the source code of this file.

Functions

size_t bbox_get_size (meosType bboxtype)
 Return the size of a bounding box type. More...
 
int bbox_max_dims (meosType bboxtype)
 Return the maximum number of dimensions of a bounding box type. More...
 
bool bbox_type (meosType bboxtype)
 Bounding box operators for temporal types. More...
 
Datum boxop_temporal_period (const Temporal *temp, const Span *p, bool(*func)(const Span *, const Span *), bool invert)
 
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 *))
 
Datum boxop_temporal_timestamp (const Temporal *temp, TimestampTz t, bool(*func)(const Span *, const Span *), bool invert)
 
Datum boxop_temporal_timestampset (const Temporal *temp, const Set *ts, bool(*func)(const Span *, const Span *), bool invert)
 
bool boxop_tnumber_number (const Temporal *temp, Datum value, meosType basetype, bool(*func)(const TBox *, const TBox *), bool invert)
 
bool boxop_tnumber_numspan (const Temporal *temp, const Span *span, bool(*func)(const TBox *, const TBox *), bool invert)
 
bool boxop_tnumber_numspanset (const Temporal *temp, const SpanSet *ss, bool(*func)(const TBox *, const TBox *), bool invert)
 
bool boxop_tnumber_tbox (const Temporal *temp, const TBox *box, bool(*func)(const TBox *, const TBox *), bool invert)
 
bool boxop_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2, bool(*func)(const TBox *, const TBox *))
 
void ensure_bbox_type (meosType bboxtype)
 Ensure that the type corresponds to a bounding box type. More...
 
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, or greater than the second one. More...
 
bool temporal_bbox_eq (const void *box1, const void *box2, meosType temptype)
 Return true if two bounding boxes are equal. More...
 
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. More...
 
size_t temporal_bbox_size (meosType tempype)
 Return the size of a bounding box of a temporal type. More...
 
uint32_t temporal_max_header_size (void)
 Bounding box operators for temporal types. More...
 
void tinstant_set_bbox (const TInstant *inst, void *bbox)
 Set the second argument to the bounding box of a temporal instant. More...
 
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. More...
 
void tsequence_compute_bbox (const TSequence *seq, void *box)
 
void tsequenceset_compute_bbox (const TSequence **seqs, int count, void *bbox)
 Set the bounding box from the array of temporal sequence values. More...