MobilityDB 1.1
Functions
temporal_boxops.c File Reference
#include "general/temporal_boxops.h"
#include <meos.h>
#include <meos_internal.h>
#include "general/temporaltypes.h"
#include "point/tpoint_boxops.h"
Include dependency graph for temporal_boxops.c:

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...
 
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 *shift, const Interval *duration)
 Shift and/or scale the time span of the bounding box by the intervals. More...
 
size_t temporal_bbox_size (meosType temptype)
 Return the size of a bounding box of a temporal type. More...
 
static bool temptype_without_bbox (meosType temptype)
 Return true if a temporal type does not have bounding box. More...
 
void tinstant_set_bbox (const TInstant *inst, void *box)
 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 *box)
 Set a bounding box from an array of temporal instant values. More...
 
static void tnumberinstarr_set_tbox (const TInstant **instants, int count, TBox *box)
 Set a temporal box from an array of temporal number instants. More...
 
static void tnumberseq_expand_tbox (TSequence *seq, const TInstant *inst)
 Expand the bounding box of a temporal number sequence with an instant. More...
 
static void tnumberseqarr_set_tbox (const TSequence **sequences, int count, TBox *box)
 Set the temporal box from the array of temporal number sequence values. More...
 
static void tseqarr_set_period (const TSequence **sequences, int count, Span *period)
 Set the period from the array of temporal sequence values. More...
 
void tsequence_expand_bbox (TSequence *seq, const TInstant *inst)
 Expand the bounding box of a temporal sequence with an additional instant. More...
 
void tsequenceset_compute_bbox (const TSequence **sequences, int count, void *box)
 Set the bounding box from the array of temporal sequence values. More...
 
void tsequenceset_expand_bbox (TSequenceSet *ss, const TSequence *seq)
 Expand the bounding box of a temporal sequence set with an additional sequence. More...