MobilityDB 1.3
Loading...
Searching...
No Matches
Macros | Functions
temporal_boxops.h File Reference
#include <postgres.h>
#include <meos.h>
#include "temporal/meos_catalog.h"

Go to the source code of this file.

Macros

#define TEMPORAL_MAX_HEADER_SIZE
 Bounding box operators for temporal types. More...
 

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)
 Return true if the type is a bounding box type. More...
 
bool boxop_temporal_temporal (const Temporal *temp1, const Temporal *temp2, bool(*func)(const Span *, const Span *))
 Generic bounding box function for two temporal values. More...
 
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. More...
 
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. More...
 
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. More...
 
bool boxop_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2, bool(*func)(const TBox *, const TBox *))
 Generic bounding box function for two temporal numbers. 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...
 
size_t temporal_bbox_size (meosType tempype)
 Return the size of a bounding box of a temporal type. More...
 
void tinstant_set_bbox (const TInstant *inst, void *bbox)
 Return in the last argument the bounding box of a temporal instant. More...
 
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. More...
 
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. More...
 
void tsequence_compute_bbox (TSequence *seq)
 Recompute the bounding box of a temporal sequence. More...
 
void tsequenceset_compute_bbox (TSequenceSet *ss)
 (Re)compute the bounding box of a temporal sequence set More...