MobilityDB 1.3
Loading...
Searching...
No Matches
Macros | Functions
tbox.h File Reference
#include <postgres.h>
#include <meos.h>

Go to the source code of this file.

Macros

#define DatumGetTboxP(X)   ((TBox *) DatumGetPointer(X))
 Functions for temporal bounding boxes. More...
 
#define PG_GETARG_TBOX_P(n)   DatumGetTboxP(PG_GETARG_DATUM(n))
 
#define PG_RETURN_TBOX_P(x)   return TboxPGetDatum(x)
 
#define TboxPGetDatum(X)   PointerGetDatum(X)
 

Functions

bool ensure_same_dimensionality_tbox (const TBox *box1, const TBox *box2)
 Ensure that a temporal boxes have the same dimensionality. More...
 
TBoxset_tbox (const Set *s)
 Convert a number or a timestamptz set into a temporal box. More...
 
TBoxspan_tbox (const Span *s)
 Convert a number span into a temporal box. More...
 
Spantbox_floatspan (const TBox *box)
 Convert a temporal box into a float span. More...
 
Spantbox_intspan (const TBox *box)
 Convert a temporal box into an integer span. More...
 
Spantbox_tstzspan (const TBox *box)
 Convert a temporal box into a timestamptz span. More...