MobilityDB 1.1
Functions
tbox.c File Reference
#include "general/tbox.h"
#include <assert.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/set.h"
#include "general/temporal.h"
#include "general/tnumber_mathfuncs.h"
#include "general/type_out.h"
#include "general/type_util.h"
#include "pg_general/meos_catalog.h"
#include "pg_general/temporal.h"
#include "pg_general/type_util.h"
#include "pg_general/tnumber_mathfuncs.h"
Include dependency graph for tbox.c:

Functions

PGDLLEXPORT Datum Adjacent_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the temporal boxes are adjacent. More...
 
PGDLLEXPORT Datum After_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box is strictly after the second one. More...
 
PGDLLEXPORT Datum Before_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box is strictly before the second one. More...
 
PGDLLEXPORT Datum Contained_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box is contained by the second one. More...
 
PGDLLEXPORT Datum Contains_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box contains the second one. More...
 
PGDLLEXPORT Datum Intersection_tbox_tbox (PG_FUNCTION_ARGS)
 Return the intersection of the temporal boxes. More...
 
PGDLLEXPORT Datum Left_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum Number_period_to_tbox (PG_FUNCTION_ARGS)
 Transform the integer and the period to a temporal box. More...
 
PGDLLEXPORT Datum Number_timestamp_to_tbox (PG_FUNCTION_ARGS)
 Transform the integer and the timestamp to a temporal box. More...
 
PGDLLEXPORT Datum Number_to_tbox (PG_FUNCTION_ARGS)
 Transform the number to a temporal box. More...
 
PGDLLEXPORT Datum Numeric_to_tbox (PG_FUNCTION_ARGS)
 Transform the numeric to a temporal box. More...
 
PGDLLEXPORT Datum Overafter_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend before the second one. More...
 
PGDLLEXPORT Datum Overbefore_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend after the second one. More...
 
PGDLLEXPORT Datum Overlaps_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the temporal boxes overlap. More...
 
PGDLLEXPORT Datum Overleft_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend to the right of the second one. More...
 
PGDLLEXPORT Datum Overright_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend to the left of the second one. More...
 
PGDLLEXPORT Datum Right_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box is strictly to the right of the second one. More...
 
PGDLLEXPORT Datum Same_tbox_tbox (PG_FUNCTION_ARGS)
 Return true if the temporal boxes are equal on the common dimensions. More...
 
PGDLLEXPORT Datum Set_to_tbox (PG_FUNCTION_ARGS)
 Transform the set to a temporal box. More...
 
PGDLLEXPORT Datum Span_period_to_tbox (PG_FUNCTION_ARGS)
 Transform the span and the period to a temporal box. More...
 
PGDLLEXPORT Datum Span_timestamp_to_tbox (PG_FUNCTION_ARGS)
 Transform the span and the timestamp to a temporal box. More...
 
PGDLLEXPORT Datum Span_to_tbox (PG_FUNCTION_ARGS)
 Transform the span to a temporal box. More...
 
void spanset_tbox_slice (Datum ssdatum, TBox *box)
 Peak into a period set datum to find the bounding box. More...
 
PGDLLEXPORT Datum Spanset_to_tbox (PG_FUNCTION_ARGS)
 Transform the span set to a temporal box. More...
 
PGDLLEXPORT Datum Tbox_as_text (PG_FUNCTION_ARGS)
 Output function for temporal boxes. More...
 
PGDLLEXPORT Datum Tbox_cmp (PG_FUNCTION_ARGS)
 Return -1, 0, or 1 depending on whether the first temporal box is less than, equal, or greater than the second one. More...
 
PGDLLEXPORT Datum Tbox_eq (PG_FUNCTION_ARGS)
 Return true if the temporal boxes are equal. More...
 
PGDLLEXPORT Datum Tbox_expand_time (PG_FUNCTION_ARGS)
 Return a temporal box expanded in the time dimension by an interval. More...
 
PGDLLEXPORT Datum Tbox_expand_value (PG_FUNCTION_ARGS)
 Return a temporal box expanded in the value dimension by a double. More...
 
PGDLLEXPORT Datum Tbox_extent_combinefn (PG_FUNCTION_ARGS)
 Combine function for extent aggregation for temporal boxes. More...
 
PGDLLEXPORT Datum Tbox_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for extent aggregation for boxes. More...
 
PGDLLEXPORT Datum Tbox_ge (PG_FUNCTION_ARGS)
 Return true if the first temporal box is greater than or equal to the second one. More...
 
PGDLLEXPORT Datum Tbox_gt (PG_FUNCTION_ARGS)
 Return true if the first temporal box is greater than the second one. More...
 
PGDLLEXPORT Datum Tbox_hast (PG_FUNCTION_ARGS)
 Return true if a temporal box has time dimension. More...
 
PGDLLEXPORT Datum Tbox_hasx (PG_FUNCTION_ARGS)
 Return true if a temporal box has value dimension. More...
 
PGDLLEXPORT Datum Tbox_in (PG_FUNCTION_ARGS)
 Input function for temporal boxes. More...
 
PGDLLEXPORT Datum Tbox_le (PG_FUNCTION_ARGS)
 Return true if the first temporal box is less than or equal to the second one. More...
 
PGDLLEXPORT Datum Tbox_lt (PG_FUNCTION_ARGS)
 Return true if the first temporal box is less than the second one. More...
 
PGDLLEXPORT Datum Tbox_ne (PG_FUNCTION_ARGS)
 Return true if the temporal boxes are different. More...
 
PGDLLEXPORT Datum Tbox_out (PG_FUNCTION_ARGS)
 Output function for temporal boxes. More...
 
PGDLLEXPORT Datum Tbox_recv (PG_FUNCTION_ARGS)
 Receive function for TBox. More...
 
static TBoxtbox_round (const TBox *box, int size)
 Set the precision of the value dimension of the temporal box to the number of decimal places. More...
 
PGDLLEXPORT Datum Tbox_round (PG_FUNCTION_ARGS)
 Set the precision of the value dimension of the temporal box to the number of decimal places. More...
 
PGDLLEXPORT Datum Tbox_send (PG_FUNCTION_ARGS)
 Send function for TBox. More...
 
PGDLLEXPORT Datum Tbox_tmax (PG_FUNCTION_ARGS)
 Return the maximum timestamp of a temporal box. More...
 
PGDLLEXPORT Datum Tbox_tmin (PG_FUNCTION_ARGS)
 Return the minimum timestamp of a temporal box. More...
 
PGDLLEXPORT Datum Tbox_to_floatspan (PG_FUNCTION_ARGS)
 Cast a temporal box as a float span. More...
 
PGDLLEXPORT Datum Tbox_to_period (PG_FUNCTION_ARGS)
 Cast a temporal box as a period. More...
 
PGDLLEXPORT Datum Tbox_xmax (PG_FUNCTION_ARGS)
 Return the maximum X value of a temporal box. More...
 
PGDLLEXPORT Datum Tbox_xmin (PG_FUNCTION_ARGS)
 Return the minimum X value of a temporal box. More...
 
PGDLLEXPORT Datum Timestamp_to_tbox (PG_FUNCTION_ARGS)
 Transform the timestamp to a temporal box. More...
 
PGDLLEXPORT Datum Union_tbox_tbox (PG_FUNCTION_ARGS)
 Return the union of the temporal boxes. More...