46#define DatumGetTboxP(X) ((TBox *) DatumGetPointer(X))
47#define TboxPGetDatum(X) PointerGetDatum(X)
48#define PG_GETARG_TBOX_P(n) DatumGetTboxP(PG_GETARG_DATUM(n))
49#define PG_RETURN_TBOX_P(x) return TboxPGetDatum(x)
Span * tbox_floatspan(const TBox *box)
Convert a temporal box into a float span.
Definition: tbox.c:706
Span * tbox_intspan(const TBox *box)
Convert a temporal box into an integer span.
Definition: tbox.c:672
TBox * span_tbox(const Span *s)
Convert a number span into a temporal box.
Definition: tbox.c:597
Span * tbox_tstzspan(const TBox *box)
Convert a temporal box into a timestamptz span.
Definition: tbox.c:740
TBox * set_tbox(const Set *s)
Convert a number or a timestamptz set into a temporal box.
Definition: tbox.c:528
External API of the Mobility Engine Open Source (MEOS) library.
Structure to represent sets of values.
Definition: meos.h:90
Structure to represent spans (a.k.a.
Definition: meos.h:104
Structure to represent temporal boxes.
Definition: meos.h:134
bool ensure_same_dimensionality_tbox(const TBox *box1, const TBox *box2)
Ensure that a temporal boxes have the same dimensionality.
Definition: tbox.c:69